@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | public static function configureContainer(LimoncelloContainerInterface $container) |
45 | 45 | { |
46 | - $container[LoggerInterface::class] = function (PsrContainerInterface $container) { |
|
46 | + $container[LoggerInterface::class] = function(PsrContainerInterface $container) { |
|
47 | 47 | $settingsProvider = $container->get(SettingsProviderInterface::class); |
48 | 48 | $appSettings = $settingsProvider->get(A::class); |
49 | 49 | $monologSettings = $settingsProvider->get(C::class); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public static function configureContainer(LimoncelloContainerInterface $container) |
37 | 37 | { |
38 | - $container[AuthorizationManagerInterface::class] = function (PsrContainerInterface $container) { |
|
38 | + $container[AuthorizationManagerInterface::class] = function(PsrContainerInterface $container) { |
|
39 | 39 | $settingsProvider = $container->get(SettingsProviderInterface::class); |
40 | 40 | $settings = $settingsProvider->get(S::class); |
41 | 41 |
@@ -102,7 +102,7 @@ |
||
102 | 102 | public function setData(array $data) |
103 | 103 | { |
104 | 104 | list($this->foreignKeys, $this->belongsToMany, $this->relationshipTypes, |
105 | - $this->reversedRelationships,$this->tableNames, $this->primaryKeys, |
|
105 | + $this->reversedRelationships, $this->tableNames, $this->primaryKeys, |
|
106 | 106 | $this->attributeTypes, $this->attributeLengths, $this->attributes, $this->reversedClasses) = $data; |
107 | 107 | } |
108 | 108 |
@@ -69,7 +69,7 @@ |
||
69 | 69 | */ |
70 | 70 | private function handle(Throwable $exception, SapiInterface $sapi, ContainerInterface $container) |
71 | 71 | { |
72 | - $message = 'Internal Server Error'; |
|
72 | + $message = 'Internal Server Error'; |
|
73 | 73 | |
74 | 74 | $this->logException($exception, $container, $message); |
75 | 75 |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | $routeConfigurators = []; |
99 | 99 | if (empty($method) === false && empty($path) === false) { |
100 | - list(, , , , , $routeConfigurators) = $this->initRouter($coreSettings)->match($method, $path); |
|
100 | + list(,,,,, $routeConfigurators) = $this->initRouter($coreSettings)->match($method, $path); |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | // configure container |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | */ |
211 | 211 | protected function createThrowableHandler(SapiInterface $sapi, PsrContainerInterface $container): Closure |
212 | 212 | { |
213 | - return function (Throwable $throwable) use ($sapi, $container) { |
|
213 | + return function(Throwable $throwable) use ($sapi, $container) { |
|
214 | 214 | $handler = $this->createExceptionHandler($container); |
215 | 215 | $handler->handleThrowable($throwable, $sapi, $container); |
216 | 216 | }; |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | */ |
225 | 225 | protected function createErrorHandler(SapiInterface $sapi, PsrContainerInterface $container): Closure |
226 | 226 | { |
227 | - return function ($severity, $message, $fileName, $lineNumber) use ($sapi, $container) { |
|
227 | + return function($severity, $message, $fileName, $lineNumber) use ($sapi, $container) { |
|
228 | 228 | $errorException = new ErrorException($message, 0, $severity, $fileName, $lineNumber); |
229 | 229 | $handler = $this->createThrowableHandler($sapi, $container); |
230 | 230 | $handler($errorException); |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | */ |
240 | 240 | protected function createFatalErrorHandler(PsrContainerInterface $container): Closure |
241 | 241 | { |
242 | - return function () use ($container) { |
|
242 | + return function() use ($container) { |
|
243 | 243 | $error = $this->getLastError(); |
244 | 244 | if ($error !== null && ((int)$error['type'] & (E_ERROR | E_COMPILE_ERROR))) { |
245 | 245 | $handler = $this->createExceptionHandler($container); |