Completed
Push — master ( 61ea01...be309f )
by Alejandro
01:30
created
src/ErrorHandler/Factory/PlainTextResponseGeneratorFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\ExpressiveErrorHandler\ErrorHandler\Factory;
5 5
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function __invoke(ContainerInterface $container)
25 25
     {
26
-        $config = $container->has('config') ? $container->get('config') : [];
27
-        return new ErrorResponseGenerator(isset($config['debug']) ? (bool) $config['debug'] : false);
26
+        $config = $container->has('config') ? $container->get('config') : [ ];
27
+        return new ErrorResponseGenerator(isset($config[ 'debug' ]) ? (bool) $config[ 'debug' ] : false);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
test/ErrorHandler/Factory/PlainTextResponseGeneratorFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace AcelayaTest\ExpressiveErrorHandler\ErrorHandler\Factory;
5 5
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function serviceIsCreated()
27 27
     {
28
-        $instance = $this->factory->__invoke(new ServiceManager([]));
28
+        $instance = $this->factory->__invoke(new ServiceManager([ ]));
29 29
         $this->assertInstanceOf(ErrorResponseGenerator::class, $instance);
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/Log/BasicLogMessageBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\ExpressiveErrorHandler\Log;
5 5
 
@@ -23,6 +23,6 @@  discard block
 block discarded – undo
23 23
             return $base;
24 24
         }
25 25
 
26
-        return $base . ': ' . PHP_EOL . $err;
26
+        return $base.': '.PHP_EOL.$err;
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
src/Log/LogMessageBuilderInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\ExpressiveErrorHandler\Log;
5 5
 
Please login to merge, or discard this patch.
src/Exception/ExceptionInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\ExpressiveErrorHandler\Exception;
5 5
 
Please login to merge, or discard this patch.
src/Exception/InvalidArgumentException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\ExpressiveErrorHandler\Exception;
5 5
 
Please login to merge, or discard this patch.
src/ConfigProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\ExpressiveErrorHandler;
5 5
 
Please login to merge, or discard this patch.
src/ErrorHandler/ErrorResponseGeneratorInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\ExpressiveErrorHandler\ErrorHandler;
5 5
 
Please login to merge, or discard this patch.
src/ErrorHandler/ContentBasedErrorResponseGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\ExpressiveErrorHandler\ErrorHandler;
5 5
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         /** @var array $accepts */
81 81
         $accepts = explode(',', $accepts);
82 82
         foreach ($accepts as $accept) {
83
-            if (! $this->errorHandlerManager->has($accept)) {
83
+            if (!$this->errorHandlerManager->has($accept)) {
84 84
                 continue;
85 85
             }
86 86
 
Please login to merge, or discard this patch.