@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Toolbelt; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Toolbelt\Commands; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Toolbelt; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Toolbelt; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | if (!function_exists('env')) { |
6 | 6 | /** |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Toolbelt\Commands; |
6 | 6 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | public function handle(): void |
20 | 20 | { |
21 | 21 | $drivers = collect($this->kernel->getDrivers()) |
22 | - ->map(function ($item) { |
|
22 | + ->map(function($item) { |
|
23 | 23 | return [$item['name'], $item['package'], $item['official'] ? '✅' : '❌']; |
24 | 24 | }) |
25 | 25 | ->toArray(); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Toolbelt\Commands; |
6 | 6 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $name = $this->getArgument('name'); |
25 | 25 | $drivers = collect($this->kernel->getDrivers()); |
26 | 26 | |
27 | - $driver = $drivers->first(function ($item) use ($name) { |
|
27 | + $driver = $drivers->first(function($item) use ($name) { |
|
28 | 28 | return $item['name'] === $name; |
29 | 29 | }); |
30 | 30 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $composer = json_decode($this->filesystem()->read('composer.json'), true); |
47 | 47 | $installed = collect($composer['require']) |
48 | 48 | ->merge($composer['require-dev']) |
49 | - ->search(function ($_, $item) use ($package) { |
|
49 | + ->search(function($_, $item) use ($package) { |
|
50 | 50 | return hash_equals($item, $package); |
51 | 51 | }); |
52 | 52 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | $process = new Process('composer require '.$package, $this->kernel->getPath()); |
63 | 63 | $output = ''; |
64 | - $result = $process->run(function ($_, $line) use (&$output) { |
|
64 | + $result = $process->run(function($_, $line) use (&$output) { |
|
65 | 65 | $output .= $line; |
66 | 66 | }); |
67 | 67 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Queue; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Queue; |
6 | 6 |