Skip to content

Commit

Permalink
style: apply fixes from Pint
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Oct 8, 2024
1 parent 9a00002 commit d9cb08a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Commands/BuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
4 changes: 1 addition & 3 deletions src/Commands/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/Components/Updater/Strategy/GithubReleasesStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
4 changes: 1 addition & 3 deletions src/Providers/Composer/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
12 changes: 5 additions & 7 deletions tests/BuildCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
};
}
};
Expand All @@ -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()
{
Expand Down

0 comments on commit d9cb08a

Please sign in to comment.