@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Chubbyphp\ErrorHandler; |
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 Chubbyphp\ErrorHandler; |
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 Chubbyphp\ErrorHandler; |
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 Chubbyphp\ErrorHandler; |
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 Chubbyphp\ErrorHandler\Slim; |
6 | 6 | |
@@ -18,15 +18,15 @@ discard block |
||
18 | 18 | { |
19 | 19 | $this->registerRequirements($container); |
20 | 20 | |
21 | - $container['errorHandler.defaultProvider'] = function () use ($container) { |
|
21 | + $container['errorHandler.defaultProvider'] = function() use ($container) { |
|
22 | 22 | throw new \RuntimeException('Please configure your default provider for error handler!'); |
23 | 23 | }; |
24 | 24 | |
25 | - $container['errorHandler.providers'] = function () use ($container) { |
|
25 | + $container['errorHandler.providers'] = function() use ($container) { |
|
26 | 26 | return []; |
27 | 27 | }; |
28 | 28 | |
29 | - $container['errorHandler'] = function () use ($container) { |
|
29 | + $container['errorHandler'] = function() use ($container) { |
|
30 | 30 | return new AdvancedErrorHandler( |
31 | 31 | $container['errorHandler.contentTypeResolver'], |
32 | 32 | $container['errorHandler.defaultProvider'], |
@@ -40,11 +40,11 @@ discard block |
||
40 | 40 | */ |
41 | 41 | private function registerRequirements(Container $container) |
42 | 42 | { |
43 | - $container['errorHandler.acceptNegation'] = function () use ($container) { |
|
43 | + $container['errorHandler.acceptNegation'] = function() use ($container) { |
|
44 | 44 | return new Negotiator(); |
45 | 45 | }; |
46 | 46 | |
47 | - $container['errorHandler.contentTypeResolver'] = function () use ($container) { |
|
47 | + $container['errorHandler.contentTypeResolver'] = function() use ($container) { |
|
48 | 48 | return new ContentTypeResolver($container['errorHandler.acceptNegation']); |
49 | 49 | }; |
50 | 50 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Chubbyphp\ErrorHandler\Slim; |
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 Chubbyphp\ErrorHandler\Slim; |
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 Chubbyphp\ErrorHandler\Slim; |
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 Chubbyphp\ErrorHandler\Slim; |
6 | 6 | |
@@ -14,11 +14,11 @@ discard block |
||
14 | 14 | */ |
15 | 15 | public function register(Container $container) |
16 | 16 | { |
17 | - $container['errorHandler.defaultProvider'] = function () use ($container) { |
|
17 | + $container['errorHandler.defaultProvider'] = function() use ($container) { |
|
18 | 18 | throw new \RuntimeException('Please configure your default provider for error handler!'); |
19 | 19 | }; |
20 | 20 | |
21 | - $container['errorHandler'] = function () use ($container) { |
|
21 | + $container['errorHandler'] = function() use ($container) { |
|
22 | 22 | return new SimpleErrorHandler($container['errorHandler.defaultProvider']); |
23 | 23 | }; |
24 | 24 | } |