@@ -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 |
@@ -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\Cache\Adapters; |
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\Cache; |
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 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $path = $this->kernel->resolve('application_log'); |
30 | 30 | $command = 'tail -f -n 1000 '.escapeshellarg($path); |
31 | 31 | |
32 | - (new Process($command))->setTimeout(null)->run(function ($type, $line) { |
|
32 | + (new Process($command))->setTimeout(null)->run(function($type, $line) { |
|
33 | 33 | $this->line($line); |
34 | 34 | }); |
35 | 35 | } |
@@ -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\Cache; |
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 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $manager = $this->kernel->resolve(ChannelManager::class); |
29 | 29 | |
30 | 30 | $channels = collect($manager->all()) |
31 | - ->map(function ($item, $name) { |
|
31 | + ->map(function($item, $name) { |
|
32 | 32 | return [$name, $item['driver'], '/channels/'.$name]; |
33 | 33 | }) |
34 | 34 | ->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\Contracts; |
6 | 6 | |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * |
22 | 22 | * @return Job |
23 | 23 | */ |
24 | - public function next(): ?Job; |
|
24 | + public function next(): ? Job; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Push command onto the queue. |