From 69cfab9515f5228f813c0bae37a9740cf3a9fb62 Mon Sep 17 00:00:00 2001 From: Phan An Date: Sun, 30 Jun 2019 13:20:40 +0200 Subject: [PATCH] Rename SyncCommand file --- .../Commands/{SyncMediaCommand.php => SyncCommand.php} | 2 +- app/Services/MediaSyncService.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) rename app/Console/Commands/{SyncMediaCommand.php => SyncCommand.php} (99%) diff --git a/app/Console/Commands/SyncMediaCommand.php b/app/Console/Commands/SyncCommand.php similarity index 99% rename from app/Console/Commands/SyncMediaCommand.php rename to app/Console/Commands/SyncCommand.php index 3baae648..3f292e95 100644 --- a/app/Console/Commands/SyncMediaCommand.php +++ b/app/Console/Commands/SyncCommand.php @@ -11,7 +11,7 @@ use Exception; use Illuminate\Console\Command; use Symfony\Component\Console\Helper\ProgressBar; -class SyncMediaCommand extends Command +class SyncCommand extends Command { protected $signature = 'koel:sync {record? : A single watch record. Consult Wiki for more info.} diff --git a/app/Services/MediaSyncService.php b/app/Services/MediaSyncService.php index 871fc074..ed90c7d0 100644 --- a/app/Services/MediaSyncService.php +++ b/app/Services/MediaSyncService.php @@ -2,7 +2,7 @@ namespace App\Services; -use App\Console\Commands\SyncMediaCommand; +use App\Console\Commands\SyncCommand; use App\Events\LibraryChanged; use App\Libraries\WatchRecord\WatchRecordInterface; use App\Models\Album; @@ -81,11 +81,11 @@ class MediaSyncService /** * Sync the media. Oh sync the media. * - * @param string[] $tags The tags to sync. + * @param string[] $tags The tags to sync. * Only taken into account for existing records. * New records will have all tags synced in regardless. - * @param bool $force Whether to force syncing even unchanged files - * @param SyncMediaCommand $syncCommand The SyncMedia command object, to log to console if executed by artisan. + * @param bool $force Whether to force syncing even unchanged files + * @param SyncCommand $syncCommand The SyncMedia command object, to log to console if executed by artisan. * * @throws Exception */ @@ -93,7 +93,7 @@ class MediaSyncService ?string $mediaPath = null, array $tags = [], bool $force = false, - ?SyncMediaCommand $syncCommand = null + ?SyncCommand $syncCommand = null ): void { $this->setSystemRequirements(); $this->setTags($tags);