@@ -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 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function register(): void |
37 | 37 | { |
38 | - $this->getContainer()->share('request', function () { |
|
38 | + $this->getContainer()->share('request', function() { |
|
39 | 39 | return ServerRequestFactory::fromGlobals( |
40 | 40 | $_SERVER, |
41 | 41 | $_GET, |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $this->getContainer()->share('response', Response::class); |
48 | 48 | $this->getContainer()->share('emitter', SapiEmitter::class); |
49 | 49 | |
50 | - $this->getContainer()->share('router', function () { |
|
50 | + $this->getContainer()->share('router', function() { |
|
51 | 51 | $router = new RouteCollection($this->getContainer()); |
52 | 52 | |
53 | 53 | $controller = new Controller($this->getContainer()->get(Kernel::class)); |
@@ -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 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function boot(): void |
34 | 34 | { |
35 | - $this->getContainer()->share(LoggerInterface::class, function () { |
|
35 | + $this->getContainer()->share(LoggerInterface::class, function() { |
|
36 | 36 | $logger = new Logger('FondBot'); |
37 | 37 | $logger->pushHandler(new StreamHandler( |
38 | 38 | $this->getContainer()->get('resources_path').'/logs/app.log' |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | $whoops = new Run; |
45 | 45 | $whoops->pushHandler(new PrettyPageHandler); |
46 | - $whoops->pushHandler(function (Throwable $exception) { |
|
46 | + $whoops->pushHandler(function(Throwable $exception) { |
|
47 | 47 | /** @var LoggerInterface $logger */ |
48 | 48 | $logger = $this->getContainer()->get(LoggerInterface::class); |
49 | 49 |
@@ -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\Http; |
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\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 | /** |