From 7d6b50b2f595644b02a98161cfd6279e29294d04 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sat, 23 Nov 2024 09:00:41 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Console/CopyAssetsCommand.php | 4 ++-- src/Driver/S3Driver.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Console/CopyAssetsCommand.php b/src/Console/CopyAssetsCommand.php index 6b20bf6..c90f25b 100644 --- a/src/Console/CopyAssetsCommand.php +++ b/src/Console/CopyAssetsCommand.php @@ -25,7 +25,7 @@ class CopyAssetsCommand extends Command { protected $signature = 'fof:s3:copy {--move : Delete local files after moving to the S3 disk}'; - + protected $description = 'Copy assets to the S3 disk'; public function handle(Container $container, Factory $factory, Paths $paths, AssetsPublishCommand $publishCommand) @@ -38,7 +38,7 @@ public function handle(Container $container, Factory $factory, Paths $paths, Ass // Move assets $this->info($deleteAfterMove ? 'Moving assets...' : 'Copying assets...'); - $this->moveFilesToDisk($localFilesystem, $paths->public . '/assets', $factory->disk('flarum-assets'), $deleteAfterMove); + $this->moveFilesToDisk($localFilesystem, $paths->public.'/assets', $factory->disk('flarum-assets'), $deleteAfterMove); $publishCommand->run( new ArrayInput([]), diff --git a/src/Driver/S3Driver.php b/src/Driver/S3Driver.php index a04d4e9..8d68f61 100644 --- a/src/Driver/S3Driver.php +++ b/src/Driver/S3Driver.php @@ -49,13 +49,13 @@ public function build( $root = Arr::get($localConfig, 'root'); $root = str_replace($this->paths->public, '', $root); - $driver = $this->manager->createS3Driver(array_merge( + $driver = $this->manager->createS3Driver(array_merge( $this->config->config(), ['root' => $root] )); $end = microtime(true); - resolve('log')->info("S3 driver built in " . round($end - $start, 2) . "s"); + resolve('log')->info('S3 driver built in '.round($end - $start, 2).'s'); return $driver; }