@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 23 | 23 | return $base; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - return $base . ': ' . PHP_EOL . $err; |
|
| 26 | + return $base.': '.PHP_EOL.$err; |
|
| 27 | 27 | } |
| 28 | 28 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\ExpressiveErrorHandler\Log; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\ExpressiveErrorHandler\Exception; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\ExpressiveErrorHandler\Exception; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\ExpressiveErrorHandler; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\ExpressiveErrorHandler\ErrorHandler; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 | |