Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Nov 23, 2024
1 parent 0bad82b commit 7d6b50b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Console/CopyAssetsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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([]),
Expand Down
4 changes: 2 additions & 2 deletions src/Driver/S3Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7d6b50b

Please sign in to comment.