@@ -40,7 +40,7 @@ |
||
| 40 | 40 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 41 | 41 | { |
| 42 | 42 | $container[ThrowableHandlerInterface::class] = |
| 43 | - function (PsrContainerInterface $container): ThrowableHandlerInterface { |
|
| 43 | + function(PsrContainerInterface $container): ThrowableHandlerInterface { |
|
| 44 | 44 | $isCli = php_sapi_name() === 'cli'; |
| 45 | 45 | |
| 46 | 46 | return $isCli === true ? new WhoopsThrowableTextHandler() : new WhoopsThrowableHtmlHandler(); |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | /** |
| 107 | 107 | * @param ContainerInterface $container |
| 108 | 108 | * |
| 109 | - * @return array |
|
| 109 | + * @return ServerRequestInterface |
|
| 110 | 110 | */ |
| 111 | 111 | private static function getCsrfSettings(ContainerInterface $container): array |
| 112 | 112 | { |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | public static function configureContainer(LimoncelloContainerInterface $container): void |
| 42 | 42 | { |
| 43 | 43 | $storage = null; |
| 44 | - $factory = function (PsrContainerInterface $container) use (&$storage) { |
|
| 44 | + $factory = function(PsrContainerInterface $container) use (&$storage) { |
|
| 45 | 45 | if ($storage === null) { |
| 46 | 46 | $storage = static::createStorage($container); |
| 47 | 47 | } |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $expectedRet = ResponseInterface::class; |
| 96 | 96 | assert( |
| 97 | 97 | $this->checkPublicStaticCallable($errorResponseMethod, $expectedArgs, $expectedRet) === true, |
| 98 | - 'CSRF error response method should have signature ' . |
|
| 98 | + 'CSRF error response method should have signature '. |
|
| 99 | 99 | '(ContainerInterface, ServerRequestInterface): ResponseInterface.' |
| 100 | 100 | ); |
| 101 | 101 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | $appConfig = $this->getAppConfig(); |
| 106 | 106 | |
| 107 | - $defaults[static::KEY_LOG_IS_ENABLED] = (bool)($appConfig[A::KEY_IS_LOG_ENABLED] ?? false); |
|
| 107 | + $defaults[static::KEY_LOG_IS_ENABLED] = (bool) ($appConfig[A::KEY_IS_LOG_ENABLED] ?? false); |
|
| 108 | 108 | |
| 109 | 109 | if (array_key_exists(A::KEY_APP_ORIGIN_SCHEMA, $appConfig) === true && |
| 110 | 110 | array_key_exists(A::KEY_APP_ORIGIN_HOST, $appConfig) === true && |
@@ -116,8 +116,8 @@ discard block |
||
| 116 | 116 | * @see http://php.net/manual/function.parse-url.php |
| 117 | 117 | */ |
| 118 | 118 | $defaults[static::KEY_SERVER_ORIGIN] = [ |
| 119 | - static::KEY_SERVER_ORIGIN_HOST => (string)$appConfig[A::KEY_APP_ORIGIN_HOST], |
|
| 120 | - static::KEY_SERVER_ORIGIN_PORT => (string)$appConfig[A::KEY_APP_ORIGIN_PORT], |
|
| 119 | + static::KEY_SERVER_ORIGIN_HOST => (string) $appConfig[A::KEY_APP_ORIGIN_HOST], |
|
| 120 | + static::KEY_SERVER_ORIGIN_PORT => (string) $appConfig[A::KEY_APP_ORIGIN_PORT], |
|
| 121 | 121 | ]; |
| 122 | 122 | } |
| 123 | 123 | |