Skip to content

Commit d2cc714

Browse files
committed
Apply style fixes from Laravel Pint
1 parent 5f0e3f9 commit d2cc714

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

app/Commands/Internal/BuildApplicationBinaryCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
namespace App\Commands\Internal;
66

7-
use LogicException;
87
use Illuminate\Support\Facades\File;
98
use LaravelZero\Framework\Commands\BuildCommand;
109
use LaravelZero\Framework\Commands\Command;
10+
use LogicException;
1111
use Symfony\Component\Console\Output\ConsoleOutput;
1212
use Throwable;
1313

@@ -48,7 +48,7 @@ public function handle(): int
4848

4949
protected function getVersion(): string
5050
{
51-
return $this->getApplication()->getVersion() . ($this->option('build-version-suffix') ? sprintf(' (Build %s)', $this->option('build-version-suffix')) : '');
51+
return $this->getApplication()->getVersion().($this->option('build-version-suffix') ? sprintf(' (Build %s)', $this->option('build-version-suffix')) : '');
5252
}
5353

5454
protected function setupBuildEnvironment(): void
@@ -73,7 +73,7 @@ protected function clearCachedConfiguration(bool $silent = false): void
7373
File::delete($configPath);
7474
}
7575

76-
if (! $silent) {
76+
if (! $silent) {
7777
$this->components->info('Configuration cache cleared successfully.');
7878
}
7979
}

app/Commands/Internal/Describer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Describer extends BaseDescriber
1111
protected static function sortCommandsInGroup(array &$commands): void
1212
{
1313
usort($commands, function ($a, $b) {
14-
if ($a->getName() === 'new') {
14+
if ($a->getName() === 'new') {
1515
return -1;
1616
}
1717

app/Providers/AppServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace App\Providers;
44

5+
use App\Commands\Internal\Describer;
56
use App\Commands\NewProjectCommand;
67
use App\Commands\ServeCommand;
7-
use App\Commands\Internal\Describer;
88
use App\Commands\VendorPublishCommand;
99
use Illuminate\Support\ServiceProvider;
1010
use NunoMaduro\LaravelConsoleSummary\Contracts\DescriberContract;

app/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
|
3838
*/
3939

40-
'version' => sprintf("v%s <fg=gray>-</> <comment>Experimental Standalone</comment> <fg=gray>-</> <fg=gray>(HydePHP v%s)</>",
40+
'version' => sprintf('v%s <fg=gray>-</> <comment>Experimental Standalone</comment> <fg=gray>-</> <fg=gray>(HydePHP v%s)</>',
4141
\App\Application::APP_VERSION, \Hyde\Foundation\HydeKernel::VERSION
4242
),
4343

tests/Unit/NewProjectCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

33
use App\Application;
4-
use Illuminate\Process\Factory;
5-
use Illuminate\Console\OutputStyle;
64
use App\Commands\NewProjectCommand;
5+
use Illuminate\Console\OutputStyle;
6+
use Illuminate\Process\Factory;
77
use Illuminate\Support\Facades\Process;
8+
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
89
use Symfony\Component\Console\Input\InputInterface;
910
use Symfony\Component\Console\Output\OutputInterface;
10-
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
1111

1212
test('can create new project', function () {
1313
Process::swap(new Factory());

0 commit comments

Comments
 (0)