From 431aeefdda5a253459465dd15f9801b33897c2fe Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Wed, 24 May 2023 13:21:46 +0100 Subject: [PATCH] Updated command classes to include "Command" in name --- .../Commands/{CleanupImages.php => CleanupImagesCommand.php} | 2 +- .../Commands/{ClearActivity.php => ClearActivityCommand.php} | 2 +- .../Commands/{ClearRevisions.php => ClearRevisionsCommand.php} | 2 +- app/Console/Commands/{ClearViews.php => ClearViewsCommand.php} | 2 +- ...CopyShelfPermissions.php => CopyShelfPermissionsCommand.php} | 2 +- .../Commands/{CreateAdmin.php => CreateAdminCommand.php} | 2 +- .../Commands/{DeleteUsers.php => DeleteUsersCommand.php} | 2 +- ...teCommentContent.php => RegenerateCommentContentCommand.php} | 2 +- ...generatePermissions.php => RegeneratePermissionsCommand.php} | 2 +- ...RegenerateReferences.php => RegenerateReferencesCommand.php} | 2 +- .../{RegenerateSearch.php => RegenerateSearchCommand.php} | 2 +- app/Console/Commands/{ResetMfa.php => ResetMfaCommand.php} | 2 +- app/Console/Commands/{UpdateUrl.php => UpdateUrlCommand.php} | 2 +- ...eDatabaseEncoding.php => UpgradeDatabaseEncodingCommand.php} | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) rename app/Console/Commands/{CleanupImages.php => CleanupImagesCommand.php} (98%) rename app/Console/Commands/{ClearActivity.php => ClearActivityCommand.php} (93%) rename app/Console/Commands/{ClearRevisions.php => ClearRevisionsCommand.php} (95%) rename app/Console/Commands/{ClearViews.php => ClearViewsCommand.php} (93%) rename app/Console/Commands/{CopyShelfPermissions.php => CopyShelfPermissionsCommand.php} (97%) rename app/Console/Commands/{CreateAdmin.php => CreateAdminCommand.php} (98%) rename app/Console/Commands/{DeleteUsers.php => DeleteUsersCommand.php} (96%) rename app/Console/Commands/{RegenerateCommentContent.php => RegenerateCommentContentCommand.php} (95%) rename app/Console/Commands/{RegeneratePermissions.php => RegeneratePermissionsCommand.php} (95%) rename app/Console/Commands/{RegenerateReferences.php => RegenerateReferencesCommand.php} (95%) rename app/Console/Commands/{RegenerateSearch.php => RegenerateSearchCommand.php} (96%) rename app/Console/Commands/{ResetMfa.php => ResetMfaCommand.php} (97%) rename app/Console/Commands/{UpdateUrl.php => UpdateUrlCommand.php} (99%) rename app/Console/Commands/{UpgradeDatabaseEncoding.php => UpgradeDatabaseEncodingCommand.php} (96%) diff --git a/app/Console/Commands/CleanupImages.php b/app/Console/Commands/CleanupImagesCommand.php similarity index 98% rename from app/Console/Commands/CleanupImages.php rename to app/Console/Commands/CleanupImagesCommand.php index c37cadef0..fe924b0f4 100644 --- a/app/Console/Commands/CleanupImages.php +++ b/app/Console/Commands/CleanupImagesCommand.php @@ -6,7 +6,7 @@ use BookStack\Uploads\ImageService; use Illuminate\Console\Command; use Symfony\Component\Console\Output\OutputInterface; -class CleanupImages extends Command +class CleanupImagesCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/ClearActivity.php b/app/Console/Commands/ClearActivityCommand.php similarity index 93% rename from app/Console/Commands/ClearActivity.php rename to app/Console/Commands/ClearActivityCommand.php index b88408e0c..54085c12b 100644 --- a/app/Console/Commands/ClearActivity.php +++ b/app/Console/Commands/ClearActivityCommand.php @@ -5,7 +5,7 @@ namespace BookStack\Console\Commands; use BookStack\Activity\Models\Activity; use Illuminate\Console\Command; -class ClearActivity extends Command +class ClearActivityCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/ClearRevisions.php b/app/Console/Commands/ClearRevisionsCommand.php similarity index 95% rename from app/Console/Commands/ClearRevisions.php rename to app/Console/Commands/ClearRevisionsCommand.php index e90503c56..ad001fdb1 100644 --- a/app/Console/Commands/ClearRevisions.php +++ b/app/Console/Commands/ClearRevisionsCommand.php @@ -5,7 +5,7 @@ namespace BookStack\Console\Commands; use BookStack\Entities\Models\PageRevision; use Illuminate\Console\Command; -class ClearRevisions extends Command +class ClearRevisionsCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/ClearViews.php b/app/Console/Commands/ClearViewsCommand.php similarity index 93% rename from app/Console/Commands/ClearViews.php rename to app/Console/Commands/ClearViewsCommand.php index 6cfbd5d5f..87ea503dc 100644 --- a/app/Console/Commands/ClearViews.php +++ b/app/Console/Commands/ClearViewsCommand.php @@ -5,7 +5,7 @@ namespace BookStack\Console\Commands; use BookStack\Activity\Models\View; use Illuminate\Console\Command; -class ClearViews extends Command +class ClearViewsCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/CopyShelfPermissions.php b/app/Console/Commands/CopyShelfPermissionsCommand.php similarity index 97% rename from app/Console/Commands/CopyShelfPermissions.php rename to app/Console/Commands/CopyShelfPermissionsCommand.php index 95673cacd..fc11484bd 100644 --- a/app/Console/Commands/CopyShelfPermissions.php +++ b/app/Console/Commands/CopyShelfPermissionsCommand.php @@ -6,7 +6,7 @@ use BookStack\Entities\Models\Bookshelf; use BookStack\Entities\Tools\PermissionsUpdater; use Illuminate\Console\Command; -class CopyShelfPermissions extends Command +class CopyShelfPermissionsCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/CreateAdmin.php b/app/Console/Commands/CreateAdminCommand.php similarity index 98% rename from app/Console/Commands/CreateAdmin.php rename to app/Console/Commands/CreateAdminCommand.php index 617e6ab2f..82b6e50aa 100644 --- a/app/Console/Commands/CreateAdmin.php +++ b/app/Console/Commands/CreateAdminCommand.php @@ -10,7 +10,7 @@ use Illuminate\Support\Str; use Illuminate\Validation\Rules\Password; use Illuminate\Validation\Rules\Unique; -class CreateAdmin extends Command +class CreateAdminCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/DeleteUsers.php b/app/Console/Commands/DeleteUsersCommand.php similarity index 96% rename from app/Console/Commands/DeleteUsers.php rename to app/Console/Commands/DeleteUsersCommand.php index f3e7c6852..d5c85dc8c 100644 --- a/app/Console/Commands/DeleteUsers.php +++ b/app/Console/Commands/DeleteUsersCommand.php @@ -6,7 +6,7 @@ use BookStack\Users\Models\User; use BookStack\Users\UserRepo; use Illuminate\Console\Command; -class DeleteUsers extends Command +class DeleteUsersCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/RegenerateCommentContent.php b/app/Console/Commands/RegenerateCommentContentCommand.php similarity index 95% rename from app/Console/Commands/RegenerateCommentContent.php rename to app/Console/Commands/RegenerateCommentContentCommand.php index 37e254335..f7ec42620 100644 --- a/app/Console/Commands/RegenerateCommentContent.php +++ b/app/Console/Commands/RegenerateCommentContentCommand.php @@ -7,7 +7,7 @@ use BookStack\Activity\Models\Comment; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; -class RegenerateCommentContent extends Command +class RegenerateCommentContentCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/RegeneratePermissions.php b/app/Console/Commands/RegeneratePermissionsCommand.php similarity index 95% rename from app/Console/Commands/RegeneratePermissions.php rename to app/Console/Commands/RegeneratePermissionsCommand.php index 2c994781f..856e943c5 100644 --- a/app/Console/Commands/RegeneratePermissions.php +++ b/app/Console/Commands/RegeneratePermissionsCommand.php @@ -6,7 +6,7 @@ use BookStack\Permissions\JointPermissionBuilder; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; -class RegeneratePermissions extends Command +class RegeneratePermissionsCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/RegenerateReferences.php b/app/Console/Commands/RegenerateReferencesCommand.php similarity index 95% rename from app/Console/Commands/RegenerateReferences.php rename to app/Console/Commands/RegenerateReferencesCommand.php index f85e0cd40..ea8ff8e00 100644 --- a/app/Console/Commands/RegenerateReferences.php +++ b/app/Console/Commands/RegenerateReferencesCommand.php @@ -6,7 +6,7 @@ use BookStack\References\ReferenceStore; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; -class RegenerateReferences extends Command +class RegenerateReferencesCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/RegenerateSearch.php b/app/Console/Commands/RegenerateSearchCommand.php similarity index 96% rename from app/Console/Commands/RegenerateSearch.php rename to app/Console/Commands/RegenerateSearchCommand.php index 23e2d2d0c..f67a51e3d 100644 --- a/app/Console/Commands/RegenerateSearch.php +++ b/app/Console/Commands/RegenerateSearchCommand.php @@ -7,7 +7,7 @@ use BookStack\Search\SearchIndex; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; -class RegenerateSearch extends Command +class RegenerateSearchCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/ResetMfa.php b/app/Console/Commands/ResetMfaCommand.php similarity index 97% rename from app/Console/Commands/ResetMfa.php rename to app/Console/Commands/ResetMfaCommand.php index 2d27fd01e..b8076d2d6 100644 --- a/app/Console/Commands/ResetMfa.php +++ b/app/Console/Commands/ResetMfaCommand.php @@ -5,7 +5,7 @@ namespace BookStack\Console\Commands; use BookStack\Users\Models\User; use Illuminate\Console\Command; -class ResetMfa extends Command +class ResetMfaCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/UpdateUrl.php b/app/Console/Commands/UpdateUrlCommand.php similarity index 99% rename from app/Console/Commands/UpdateUrl.php rename to app/Console/Commands/UpdateUrlCommand.php index 2db413ff4..27f84cc89 100644 --- a/app/Console/Commands/UpdateUrl.php +++ b/app/Console/Commands/UpdateUrlCommand.php @@ -5,7 +5,7 @@ namespace BookStack\Console\Commands; use Illuminate\Console\Command; use Illuminate\Database\Connection; -class UpdateUrl extends Command +class UpdateUrlCommand extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Commands/UpgradeDatabaseEncoding.php b/app/Console/Commands/UpgradeDatabaseEncodingCommand.php similarity index 96% rename from app/Console/Commands/UpgradeDatabaseEncoding.php rename to app/Console/Commands/UpgradeDatabaseEncodingCommand.php index 0692cf6eb..245ce57c6 100644 --- a/app/Console/Commands/UpgradeDatabaseEncoding.php +++ b/app/Console/Commands/UpgradeDatabaseEncodingCommand.php @@ -5,7 +5,7 @@ namespace BookStack\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; -class UpgradeDatabaseEncoding extends Command +class UpgradeDatabaseEncodingCommand extends Command { /** * The name and signature of the console command.