@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function __construct($displayErrorDetails = false) |
| 27 | 27 | { |
| 28 | - $this->displayErrorDetails = (bool) $displayErrorDetails; |
|
| 28 | + $this->displayErrorDetails = (bool)$displayErrorDetails; |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * |
| 44 | 44 | * @return EnvironmentInterface |
| 45 | 45 | */ |
| 46 | - $container['environment'] = function () { |
|
| 46 | + $container['environment'] = function() { |
|
| 47 | 47 | return new Environment($_SERVER); |
| 48 | 48 | }; |
| 49 | 49 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * |
| 57 | 57 | * @return ServerRequestInterface |
| 58 | 58 | */ |
| 59 | - $container['request'] = function ($container) { |
|
| 59 | + $container['request'] = function($container) { |
|
| 60 | 60 | return Request::createFromEnvironment($container->get('environment')); |
| 61 | 61 | }; |
| 62 | 62 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * |
| 70 | 70 | * @return ResponseInterface |
| 71 | 71 | */ |
| 72 | - $container['response'] = function ($container) { |
|
| 72 | + $container['response'] = function($container) { |
|
| 73 | 73 | $headers = new Headers(['Content-Type' => 'text/html; charset=UTF-8']); |
| 74 | 74 | $response = new Response(200, $headers); |
| 75 | 75 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * |
| 87 | 87 | * @return RouterInterface |
| 88 | 88 | */ |
| 89 | - $container['router'] = function ($container) { |
|
| 89 | + $container['router'] = function($container) { |
|
| 90 | 90 | $routerCacheFile = false; |
| 91 | 91 | if (isset($container->get('settings')['routerCacheFile'])) { |
| 92 | 92 | $routerCacheFile = $container->get('settings')['routerCacheFile']; |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | * |
| 110 | 110 | * @return InvocationStrategyInterface |
| 111 | 111 | */ |
| 112 | - $container['foundHandler'] = function () { |
|
| 112 | + $container['foundHandler'] = function() { |
|
| 113 | 113 | return new RequestResponse; |
| 114 | 114 | }; |
| 115 | 115 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | * |
| 131 | 131 | * @return callable |
| 132 | 132 | */ |
| 133 | - $container['phpErrorHandler'] = function ($container) { |
|
| 133 | + $container['phpErrorHandler'] = function($container) { |
|
| 134 | 134 | return new PhpError($container->get('settings')['displayErrorDetails']); |
| 135 | 135 | }; |
| 136 | 136 | } |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | * |
| 152 | 152 | * @return callable |
| 153 | 153 | */ |
| 154 | - $container['errorHandler'] = function ($container) { |
|
| 154 | + $container['errorHandler'] = function($container) { |
|
| 155 | 155 | return new Error( |
| 156 | 156 | $container->get('settings')['displayErrorDetails'] |
| 157 | 157 | ); |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | * |
| 172 | 172 | * @return callable |
| 173 | 173 | */ |
| 174 | - $container['notFoundHandler'] = function () { |
|
| 174 | + $container['notFoundHandler'] = function() { |
|
| 175 | 175 | return new NotFound; |
| 176 | 176 | }; |
| 177 | 177 | } |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | * |
| 191 | 191 | * @return callable |
| 192 | 192 | */ |
| 193 | - $container['notAllowedHandler'] = function () { |
|
| 193 | + $container['notAllowedHandler'] = function() { |
|
| 194 | 194 | return new NotAllowed; |
| 195 | 195 | }; |
| 196 | 196 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * |
| 204 | 204 | * @return CallableResolverInterface |
| 205 | 205 | */ |
| 206 | - $container['callableResolver'] = function ($container) { |
|
| 206 | + $container['callableResolver'] = function($container) { |
|
| 207 | 207 | return new CallableResolver($container); |
| 208 | 208 | }; |
| 209 | 209 | } |