@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $this->executeClear($container, $inOut); |
| 124 | 124 | break; |
| 125 | 125 | default: |
| 126 | - $inOut->writeError("Unsupported action `$action`." . PHP_EOL); |
|
| 126 | + $inOut->writeError("Unsupported action `$action`.".PHP_EOL); |
|
| 127 | 127 | break; |
| 128 | 128 | } |
| 129 | 129 | } |
@@ -153,13 +153,13 @@ discard block |
||
| 153 | 153 | $fileSystem = $this->getFileSystem($container); |
| 154 | 154 | if ($fileSystem->exists($path) === true) { |
| 155 | 155 | $fileSystem->delete($path); |
| 156 | - $inOut->writeInfo("Cache file deleted `$path`." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 156 | + $inOut->writeInfo("Cache file deleted `$path`.".PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 157 | 157 | |
| 158 | 158 | return; |
| 159 | 159 | } |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | - $inOut->writeInfo('Cache already clean.' . PHP_EOL); |
|
| 162 | + $inOut->writeInfo('Cache already clean.'.PHP_EOL); |
|
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | /** |
@@ -189,11 +189,11 @@ discard block |
||
| 189 | 189 | $settingsData = $settingsProvider->serialize(); |
| 190 | 190 | $content = $this->composeContent($settingsData, $namespace, $class, $method); |
| 191 | 191 | |
| 192 | - $path = $cacheDir . DIRECTORY_SEPARATOR . $class . '.php'; |
|
| 192 | + $path = $cacheDir.DIRECTORY_SEPARATOR.$class.'.php'; |
|
| 193 | 193 | $this->getFileSystem($container)->write($path, $content); |
| 194 | 194 | |
| 195 | - $inOut->writeInfo('Cache created.' . PHP_EOL); |
|
| 196 | - $inOut->writeInfo("Cache written to `$path`." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 195 | + $inOut->writeInfo('Cache created.'.PHP_EOL); |
|
| 196 | + $inOut->writeInfo("Cache written to `$path`.".PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | /** |
@@ -260,8 +260,8 @@ discard block |
||
| 260 | 260 | |
| 261 | 261 | assert( |
| 262 | 262 | $data !== null, |
| 263 | - 'It seems the data are not exportable. It is likely to be caused by class instances ' . |
|
| 264 | - 'that do not implement ` __set_state` magic method required by `var_export`. ' . |
|
| 263 | + 'It seems the data are not exportable. It is likely to be caused by class instances '. |
|
| 264 | + 'that do not implement ` __set_state` magic method required by `var_export`. '. |
|
| 265 | 265 | 'See http://php.net/manual/en/language.oop5.magic.php#object.set-state for more details.' |
| 266 | 266 | ); |
| 267 | 267 | |
@@ -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 | |