Completed
Push — master ( 347cdc...68c30e )
by Dominik
02:44
created
src/AdvancedErrorHandlerProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\ErrorHandler;
6 6
 
@@ -17,15 +17,15 @@  discard block
 block discarded – undo
17 17
     {
18 18
         $this->registerRequirements($container);
19 19
 
20
-        $container['errorHandler.defaultProvider'] = function () use ($container) {
20
+        $container['errorHandler.defaultProvider'] = function() use ($container) {
21 21
             throw new \RuntimeException('Please configure your default provider for error handler!');
22 22
         };
23 23
 
24
-        $container['errorHandler.providers'] = function () use ($container) {
24
+        $container['errorHandler.providers'] = function() use ($container) {
25 25
             return [];
26 26
         };
27 27
 
28
-        $container['errorHandler.middleware'] = function () use ($container) {
28
+        $container['errorHandler.middleware'] = function() use ($container) {
29 29
             return new ErrorHandlerMiddleware(
30 30
                  new AdvancedErrorHandler(
31 31
                     $container['errorHandler.contentTypeResolver'],
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
      */
43 43
     private function registerRequirements(Container $container)
44 44
     {
45
-        $container['errorHandler.acceptNegation'] = function () use ($container) {
45
+        $container['errorHandler.acceptNegation'] = function() use ($container) {
46 46
             return new Negotiator();
47 47
         };
48 48
 
49
-        $container['errorHandler.contentTypeResolver'] = function () use ($container) {
49
+        $container['errorHandler.contentTypeResolver'] = function() use ($container) {
50 50
             return new ContentTypeResolver($container['errorHandler.acceptNegation']);
51 51
         };
52 52
     }
Please login to merge, or discard this patch.
src/SimpleErrorHandlerProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\ErrorHandler;
6 6
 
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
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.middleware'] = function () use ($container) {
21
+        $container['errorHandler.middleware'] = function() use ($container) {
22 22
             return new ErrorHandlerMiddleware(
23 23
                 new SimpleErrorHandler($container['errorHandler.defaultProvider'], $container['logger'] ?? null)
24 24
             );
Please login to merge, or discard this patch.