Skip to content

Commit d9cb08a

Browse files
committed
style: apply fixes from Pint
1 parent 9a00002 commit d9cb08a

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

src/Commands/BuildCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private function compile(string $name): BuildCommand
143143

144144
$progressBar = tap(
145145
new ProgressBar(
146-
$this->output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL ? new NullOutput() : $section, 25
146+
$this->output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL ? new NullOutput : $section, 25
147147
)
148148
)->setProgressCharacter("\xF0\x9F\x8D\xBA");
149149

src/Commands/Command.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ abstract class Command extends BaseCommand
3434
/**
3535
* Define the command's schedule.
3636
*/
37-
public function schedule(Schedule $schedule)
38-
{
39-
}
37+
public function schedule(Schedule $schedule) {}
4038

4139
/**
4240
* @param Application $laravel

src/Components/Updater/Strategy/GithubReleasesStrategy.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22

33
namespace LaravelZero\Framework\Components\Updater\Strategy;
44

5-
final class GithubReleasesStrategy extends \Humbug\SelfUpdate\Strategy\GithubStrategy implements StrategyInterface
6-
{
7-
}
5+
final class GithubReleasesStrategy extends \Humbug\SelfUpdate\Strategy\GithubStrategy implements StrategyInterface {}

src/Providers/Composer/Composer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ final class Composer implements ComposerContract
3333
*
3434
* @return void
3535
*/
36-
public function __construct(private readonly Application $app)
37-
{
38-
}
36+
public function __construct(private readonly Application $app) {}
3937

4038
/**
4139
* {@inheritdoc}

tests/BuildCommandTest.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@
1818
$composerMock = $this->createMock(ComposerContract::class);
1919
$this->app->instance(ComposerContract::class, $composerMock);
2020

21-
$output = new class() extends NullOutput
21+
$output = new class extends NullOutput
2222
{
2323
public function section(): NullOutput
2424
{
25-
return new class() extends NullOutput
25+
return new class extends NullOutput
2626
{
27-
public function clear()
28-
{
29-
}
27+
public function clear() {}
3028
};
3129
}
3230
};
@@ -50,11 +48,11 @@ public function clear()
5048

5149
$contents = File::get(config_path('app.php'));
5250

53-
$output = new class() extends NullOutput
51+
$output = new class extends NullOutput
5452
{
5553
public function section(): NullOutput
5654
{
57-
return new class() extends NullOutput
55+
return new class extends NullOutput
5856
{
5957
public function clear()
6058
{

0 commit comments

Comments
 (0)