@@ -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 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $items = json_decode((string) $response->getBody(), true); |
26 | 26 | |
27 | 27 | $drivers = collect($items) |
28 | - ->map(function ($item) { |
|
28 | + ->map(function($item) { |
|
29 | 29 | return [$item['name'], $item['package'], $item['official'] ? '✅' : '❌']; |
30 | 30 | }) |
31 | 31 | ->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\Application; |
6 | 6 | |
@@ -40,13 +40,13 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function register(): void |
42 | 42 | { |
43 | - $this->container->share('request', function () { |
|
43 | + $this->container->share('request', function() { |
|
44 | 44 | return ServerRequestFactory::fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES); |
45 | 45 | }); |
46 | 46 | $this->container->share('response', Response::class); |
47 | 47 | $this->container->share('emitter', SapiEmitter::class); |
48 | 48 | |
49 | - $this->container->share('router', function () { |
|
49 | + $this->container->share('router', function() { |
|
50 | 50 | $router = new RouteCollection($this->container); |
51 | 51 | |
52 | 52 | $this->routes($router); |
@@ -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\Application; |
6 | 6 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @return Channel|null |
45 | 45 | */ |
46 | - public function getChannel(): ?Channel |
|
46 | + public function getChannel(): ? Channel |
|
47 | 47 | { |
48 | 48 | return $this->channel; |
49 | 49 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @return AbstractDriver|null |
65 | 65 | */ |
66 | - public function getDriver(): ?AbstractDriver |
|
66 | + public function getDriver(): ? AbstractDriver |
|
67 | 67 | { |
68 | 68 | return $this->driver; |
69 | 69 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @return Session|null |
85 | 85 | */ |
86 | - public function getSession(): ?Session |
|
86 | + public function getSession(): ? Session |
|
87 | 87 | { |
88 | 88 | return $this->session; |
89 | 89 | } |
@@ -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\Drivers; |
6 | 6 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * |
49 | 49 | * @return TemplateCompiler|null |
50 | 50 | */ |
51 | - abstract public function getTemplateCompiler(): ?TemplateCompiler; |
|
51 | + abstract public function getTemplateCompiler(): ? TemplateCompiler; |
|
52 | 52 | |
53 | 53 | /** |
54 | 54 | * Get command handler instance. |
@@ -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\Contracts; |
6 | 6 |