From ff1ad6cd563439b9d4021702c0235bd0f0cf0c11 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 11 Dec 2016 15:49:32 +0100 Subject: [PATCH] command fixes --- app/Console/Command/DatabaseInstallCommand.php | 2 +- app/Console/Command/DatabaseMigrateCommand.php | 2 +- app/Console/Command/DatabaseResetCommand.php | 2 +- app/Console/Command/DatabaseRollbackCommand.php | 2 +- app/Console/Command/DatabaseStatusCommand.php | 2 +- .../{PurgeInactiveUsers.php => PurgeInactiveUsersCommand.php} | 2 +- app/Console/Command/RebuildForumCacheCommand.php | 2 +- app/Console/Command/SessionPurgeCommand.php | 1 - 8 files changed, 7 insertions(+), 8 deletions(-) rename app/Console/Command/{PurgeInactiveUsers.php => PurgeInactiveUsersCommand.php} (94%) diff --git a/app/Console/Command/DatabaseInstallCommand.php b/app/Console/Command/DatabaseInstallCommand.php index 5596880..97a3123 100644 --- a/app/Console/Command/DatabaseInstallCommand.php +++ b/app/Console/Command/DatabaseInstallCommand.php @@ -24,7 +24,7 @@ class DatabaseInstallCommand extends Command */ public function brief(): string { - return 'Create the migration repository'; + return 'Create the migration repository.'; } /** diff --git a/app/Console/Command/DatabaseMigrateCommand.php b/app/Console/Command/DatabaseMigrateCommand.php index 5a0dc9e..736aa97 100644 --- a/app/Console/Command/DatabaseMigrateCommand.php +++ b/app/Console/Command/DatabaseMigrateCommand.php @@ -29,7 +29,7 @@ class DatabaseMigrateCommand extends Command */ public function brief(): string { - return 'Run the database migrations'; + return 'Run the database migrations.'; } /** diff --git a/app/Console/Command/DatabaseResetCommand.php b/app/Console/Command/DatabaseResetCommand.php index 556f0f8..a52d622 100644 --- a/app/Console/Command/DatabaseResetCommand.php +++ b/app/Console/Command/DatabaseResetCommand.php @@ -24,7 +24,7 @@ class DatabaseResetCommand extends Command */ public function brief(): string { - return 'Rollback all database migrations'; + return 'Rollback all database migrations.'; } /** diff --git a/app/Console/Command/DatabaseRollbackCommand.php b/app/Console/Command/DatabaseRollbackCommand.php index 0783599..d4bbf12 100644 --- a/app/Console/Command/DatabaseRollbackCommand.php +++ b/app/Console/Command/DatabaseRollbackCommand.php @@ -24,7 +24,7 @@ class DatabaseRollbackCommand extends Command */ public function brief(): string { - return 'Rollback the last database migration'; + return 'Rollback the last database migration.'; } /** diff --git a/app/Console/Command/DatabaseStatusCommand.php b/app/Console/Command/DatabaseStatusCommand.php index a9f3ca3..e83d9cd 100644 --- a/app/Console/Command/DatabaseStatusCommand.php +++ b/app/Console/Command/DatabaseStatusCommand.php @@ -30,7 +30,7 @@ class DatabaseStatusCommand extends Command */ public function brief(): string { - return 'Show the status of each migration'; + return 'Show the status of each migration.'; } /** diff --git a/app/Console/Command/PurgeInactiveUsers.php b/app/Console/Command/PurgeInactiveUsersCommand.php similarity index 94% rename from app/Console/Command/PurgeInactiveUsers.php rename to app/Console/Command/PurgeInactiveUsersCommand.php index 01e9abb..655344b 100644 --- a/app/Console/Command/PurgeInactiveUsers.php +++ b/app/Console/Command/PurgeInactiveUsersCommand.php @@ -15,7 +15,7 @@ use Sakura\Forum\Post; * @package Sakura * @author Julian van de Groep */ -class PurgeInactiveUsers extends Command +class PurgeInactiveUsersCommand extends Command { /** * A quick description of this command. diff --git a/app/Console/Command/RebuildForumCacheCommand.php b/app/Console/Command/RebuildForumCacheCommand.php index 999adbe..60f192b 100644 --- a/app/Console/Command/RebuildForumCacheCommand.php +++ b/app/Console/Command/RebuildForumCacheCommand.php @@ -23,7 +23,7 @@ class RebuildForumCacheCommand extends Command */ public function brief(): string { - return 'Rebuild the forum bbcode cache'; + return 'Rebuild the forum bbcode cache.'; } /** diff --git a/app/Console/Command/SessionPurgeCommand.php b/app/Console/Command/SessionPurgeCommand.php index 1dd456b..6556d13 100644 --- a/app/Console/Command/SessionPurgeCommand.php +++ b/app/Console/Command/SessionPurgeCommand.php @@ -32,7 +32,6 @@ class SessionPurgeCommand extends Command { DB::table('sessions') ->where('session_expire', '<', time()) - ->where('session_remember', '!=', 1) ->delete(); } }