@@ -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('kernel')) { |
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\Console; |
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\Console; |
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\Console; |
6 | 6 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $items = json_decode((string) $response->getBody(), true); |
27 | 27 | |
28 | 28 | $drivers = collect($items) |
29 | - ->transform(function ($item) use ($installedDrivers) { |
|
29 | + ->transform(function($item) use ($installedDrivers) { |
|
30 | 30 | return [ |
31 | 31 | $item['name'], |
32 | 32 | $item['package'], |
@@ -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\Console; |
6 | 6 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $name = $this->argument('name'); |
28 | 28 | $drivers = collect($items); |
29 | 29 | |
30 | - $driver = $drivers->first(function ($item) use ($name) { |
|
30 | + $driver = $drivers->first(function($item) use ($name) { |
|
31 | 31 | return $item['name'] === $name; |
32 | 32 | }); |
33 | 33 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $composer = json_decode($filesystem->get('composer.json'), true); |
50 | 50 | $installed = collect($composer['require']) |
51 | 51 | ->merge($composer['require-dev']) |
52 | - ->search(function ($_, $item) use ($package) { |
|
52 | + ->search(function($_, $item) use ($package) { |
|
53 | 53 | return hash_equals($item, $package); |
54 | 54 | }); |
55 | 55 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | $process = new Process('composer require '.$package, path()); |
66 | 66 | $output = ''; |
67 | - $result = $process->run(function ($_, $line) use (&$output) { |
|
67 | + $result = $process->run(function($_, $line) use (&$output) { |
|
68 | 68 | $output .= $line; |
69 | 69 | }); |
70 | 70 |
@@ -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\Console; |
6 | 6 | |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | public function handle(ChannelManager $manager): void |
16 | 16 | { |
17 | 17 | $rows = collect($manager->all()) |
18 | - ->map(function ($item, $name) { |
|
18 | + ->map(function($item, $name) { |
|
19 | 19 | return [$name, $item['driver'], '/channels/'.$name]; |
20 | 20 | }) |
21 | 21 | ->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\Providers; |
6 | 6 | |
@@ -17,13 +17,13 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function register(): void |
19 | 19 | { |
20 | - $this->app->singleton(ChannelManager::class, function () { |
|
20 | + $this->app->singleton(ChannelManager::class, function() { |
|
21 | 21 | /** @var Config $config */ |
22 | 22 | $config = $this->app[Config::class]; |
23 | 23 | |
24 | 24 | /** @var array $channels */ |
25 | 25 | $channels = collect($config->get('fondbot.channels', [])) |
26 | - ->mapWithKeys(function (array $parameters, string $name) { |
|
26 | + ->mapWithKeys(function(array $parameters, string $name) { |
|
27 | 27 | return [$name => $parameters]; |
28 | 28 | }); |
29 | 29 |
@@ -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\Providers; |
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\Providers; |
6 | 6 | |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function register(): void |
19 | 19 | { |
20 | - $this->app->singleton(DriverManager::class, function () { |
|
20 | + $this->app->singleton(DriverManager::class, function() { |
|
21 | 21 | /** @var Config $config */ |
22 | 22 | $config = $this->app[Config::class]; |
23 | 23 |