From d9cb08ac7c818658760c9a920d0c5a12e2ad4954 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Tue, 8 Oct 2024 14:49:01 +0100 Subject: [PATCH] style: apply fixes from Pint --- src/Commands/BuildCommand.php | 2 +- src/Commands/Command.php | 4 +--- .../Updater/Strategy/GithubReleasesStrategy.php | 4 +--- src/Providers/Composer/Composer.php | 4 +--- tests/BuildCommandTest.php | 12 +++++------- 5 files changed, 9 insertions(+), 17 deletions(-) diff --git a/src/Commands/BuildCommand.php b/src/Commands/BuildCommand.php index f3bf707b..b7c0e4fb 100644 --- a/src/Commands/BuildCommand.php +++ b/src/Commands/BuildCommand.php @@ -143,7 +143,7 @@ private function compile(string $name): BuildCommand $progressBar = tap( new ProgressBar( - $this->output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL ? new NullOutput() : $section, 25 + $this->output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL ? new NullOutput : $section, 25 ) )->setProgressCharacter("\xF0\x9F\x8D\xBA"); diff --git a/src/Commands/Command.php b/src/Commands/Command.php index 6b6a8f80..56d71e46 100644 --- a/src/Commands/Command.php +++ b/src/Commands/Command.php @@ -34,9 +34,7 @@ abstract class Command extends BaseCommand /** * Define the command's schedule. */ - public function schedule(Schedule $schedule) - { - } + public function schedule(Schedule $schedule) {} /** * @param Application $laravel diff --git a/src/Components/Updater/Strategy/GithubReleasesStrategy.php b/src/Components/Updater/Strategy/GithubReleasesStrategy.php index e5a0c87a..27a8512d 100644 --- a/src/Components/Updater/Strategy/GithubReleasesStrategy.php +++ b/src/Components/Updater/Strategy/GithubReleasesStrategy.php @@ -2,6 +2,4 @@ namespace LaravelZero\Framework\Components\Updater\Strategy; -final class GithubReleasesStrategy extends \Humbug\SelfUpdate\Strategy\GithubStrategy implements StrategyInterface -{ -} +final class GithubReleasesStrategy extends \Humbug\SelfUpdate\Strategy\GithubStrategy implements StrategyInterface {} diff --git a/src/Providers/Composer/Composer.php b/src/Providers/Composer/Composer.php index 8f224ccd..77fd55ef 100644 --- a/src/Providers/Composer/Composer.php +++ b/src/Providers/Composer/Composer.php @@ -33,9 +33,7 @@ final class Composer implements ComposerContract * * @return void */ - public function __construct(private readonly Application $app) - { - } + public function __construct(private readonly Application $app) {} /** * {@inheritdoc} diff --git a/tests/BuildCommandTest.php b/tests/BuildCommandTest.php index 9fc9bc24..4247f87f 100755 --- a/tests/BuildCommandTest.php +++ b/tests/BuildCommandTest.php @@ -18,15 +18,13 @@ $composerMock = $this->createMock(ComposerContract::class); $this->app->instance(ComposerContract::class, $composerMock); - $output = new class() extends NullOutput + $output = new class extends NullOutput { public function section(): NullOutput { - return new class() extends NullOutput + return new class extends NullOutput { - public function clear() - { - } + public function clear() {} }; } }; @@ -50,11 +48,11 @@ public function clear() $contents = File::get(config_path('app.php')); - $output = new class() extends NullOutput + $output = new class extends NullOutput { public function section(): NullOutput { - return new class() extends NullOutput + return new class extends NullOutput { public function clear() {