@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public static function configureContainer(LimoncelloContainerInterface $container): void |
39 | 39 | { |
40 | 40 | $container[CommandStorageInterface::class] = |
41 | - function (PsrContainerInterface $container): CommandStorageInterface { |
|
41 | + function(PsrContainerInterface $container): CommandStorageInterface { |
|
42 | 42 | $creator = new class |
43 | 43 | { |
44 | 44 | use ClassIsTrait; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $providerClasses = $appConfig[S::KEY_PROVIDER_CLASSES]; |
80 | 80 | $commandsFolder = $appConfig[S::KEY_COMMANDS_FOLDER]; |
81 | 81 | $commandsFileMask = $appConfig[S::KEY_COMMANDS_FILE_MASK] ?? '*.php'; |
82 | - $commandsPath = $commandsFolder . DIRECTORY_SEPARATOR . $commandsFileMask; |
|
82 | + $commandsPath = $commandsFolder.DIRECTORY_SEPARATOR.$commandsFileMask; |
|
83 | 83 | |
84 | 84 | $storage = $creator->createCommandStorage($commandsPath, $providerClasses); |
85 | 85 |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $this->executeClear($container, $inOut); |
113 | 113 | break; |
114 | 114 | default: |
115 | - $inOut->writeError("Unsupported action `$action`." . PHP_EOL); |
|
115 | + $inOut->writeError("Unsupported action `$action`.".PHP_EOL); |
|
116 | 116 | break; |
117 | 117 | } |
118 | 118 | } |
@@ -137,17 +137,17 @@ discard block |
||
137 | 137 | throw new ConfigurationException(); |
138 | 138 | } |
139 | 139 | |
140 | - $path = $cacheDir . DIRECTORY_SEPARATOR . $class . '.php'; |
|
140 | + $path = $cacheDir.DIRECTORY_SEPARATOR.$class.'.php'; |
|
141 | 141 | |
142 | 142 | $fileSystem = $this->getFileSystem($container); |
143 | 143 | if ($fileSystem->exists($path) === true) { |
144 | 144 | $fileSystem->delete($path); |
145 | - $inOut->writeInfo("Cache file deleted `$path`." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
145 | + $inOut->writeInfo("Cache file deleted `$path`.".PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
146 | 146 | |
147 | 147 | return; |
148 | 148 | } |
149 | 149 | |
150 | - $inOut->writeInfo('Cache already clean.' . PHP_EOL); |
|
150 | + $inOut->writeInfo('Cache already clean.'.PHP_EOL); |
|
151 | 151 | } |
152 | 152 | |
153 | 153 | /** |
@@ -174,11 +174,11 @@ discard block |
||
174 | 174 | $settingsData = $settingsProvider->serialize(); |
175 | 175 | $content = $this->composeContent($settingsData, $namespace, $class, $method); |
176 | 176 | |
177 | - $path = $cacheDir . DIRECTORY_SEPARATOR . $class . '.php'; |
|
177 | + $path = $cacheDir.DIRECTORY_SEPARATOR.$class.'.php'; |
|
178 | 178 | $this->getFileSystem($container)->write($path, $content); |
179 | 179 | |
180 | - $inOut->writeInfo('Cache created.' . PHP_EOL); |
|
181 | - $inOut->writeInfo("Cache written to `$path`." . PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
180 | + $inOut->writeInfo('Cache created.'.PHP_EOL); |
|
181 | + $inOut->writeInfo("Cache written to `$path`.".PHP_EOL, IoInterface::VERBOSITY_VERBOSE); |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | /** |
@@ -245,8 +245,8 @@ discard block |
||
245 | 245 | |
246 | 246 | assert( |
247 | 247 | $data !== null, |
248 | - 'It seems the data are not exportable. It is likely to be caused by class instances ' . |
|
249 | - 'that do not implement ` __set_state` magic method required by `var_export`. ' . |
|
248 | + 'It seems the data are not exportable. It is likely to be caused by class instances '. |
|
249 | + 'that do not implement ` __set_state` magic method required by `var_export`. '. |
|
250 | 250 | 'See http://php.net/manual/en/language.oop5.magic.php#object.set-state for more details.' |
251 | 251 | ); |
252 | 252 |