@@ -35,7 +35,7 @@ discard block  | 
                                                    ||
| 35 | 35 | */  | 
                                                        
| 36 | 36 | public static function configureContainer(LimoncelloContainerInterface $container): void  | 
                                                        
| 37 | 37 |      { | 
                                                        
| 38 | -        $container[TemplatesInterface::class] = function (PsrContainerInterface $container): TemplatesInterface { | 
                                                        |
| 38 | +        $container[TemplatesInterface::class] = function(PsrContainerInterface $container): TemplatesInterface { | 
                                                        |
| 39 | 39 | $settings = $container->get(SettingsProviderInterface::class)->get(C::class);  | 
                                                        
| 40 | 40 | $templates = new TwigTemplates(  | 
                                                        
| 41 | 41 | $settings[C::KEY_APP_ROOT_FOLDER],  | 
                                                        
@@ -48,7 +48,7 @@ discard block  | 
                                                    ||
| 48 | 48 | };  | 
                                                        
| 49 | 49 | |
| 50 | 50 | $container[TemplatesCacheInterface::class] =  | 
                                                        
| 51 | -            function (PsrContainerInterface $container): TemplatesCacheInterface { | 
                                                        |
| 51 | +            function(PsrContainerInterface $container): TemplatesCacheInterface { | 
                                                        |
| 52 | 52 | return $container->get(TemplatesInterface::class);  | 
                                                        
| 53 | 53 | };  | 
                                                        
| 54 | 54 | }  | 
                                                        
@@ -103,7 +103,7 @@ discard block  | 
                                                    ||
| 103 | 103 | (new self())->executeClear($inOut, $container);  | 
                                                        
| 104 | 104 | break;  | 
                                                        
| 105 | 105 | default:  | 
                                                        
| 106 | -                $inOut->writeError("Unsupported action `$action`." . PHP_EOL); | 
                                                        |
| 106 | +                $inOut->writeError("Unsupported action `$action`.".PHP_EOL); | 
                                                        |
| 107 | 107 | break;  | 
                                                        
| 108 | 108 | }  | 
                                                        
| 109 | 109 | }  | 
                                                        
@@ -125,7 +125,7 @@ discard block  | 
                                                    ||
| 125 | 125 | $fileSystem->isFolder($fileOrFolder) === false ?: $fileSystem->deleteFolderRecursive($fileOrFolder);  | 
                                                        
| 126 | 126 | }  | 
                                                        
| 127 | 127 | |
| 128 | -        $inOut->writeInfo('Cache has been cleared.' . PHP_EOL); | 
                                                        |
| 128 | +        $inOut->writeInfo('Cache has been cleared.'.PHP_EOL); | 
                                                        |
| 129 | 129 | }  | 
                                                        
| 130 | 130 | |
| 131 | 131 | /**  | 
                                                        
@@ -147,14 +147,14 @@ discard block  | 
                                                    ||
| 147 | 147 |          foreach ($templates as $templateName) { | 
                                                        
| 148 | 148 | // it will write template to cache  | 
                                                        
| 149 | 149 | $inOut->writeInfo(  | 
                                                        
| 150 | - "Starting template caching for `$templateName`..." . PHP_EOL,  | 
                                                        |
| 150 | + "Starting template caching for `$templateName`...".PHP_EOL,  | 
                                                        |
| 151 | 151 | IoInterface::VERBOSITY_VERBOSE  | 
                                                        
| 152 | 152 | );  | 
                                                        
| 153 | 153 | |
| 154 | 154 | $cache->cache($templateName);  | 
                                                        
| 155 | 155 | |
| 156 | 156 | $inOut->writeInfo(  | 
                                                        
| 157 | - "Template caching finished for `$templateName`." . PHP_EOL,  | 
                                                        |
| 157 | + "Template caching finished for `$templateName`.".PHP_EOL,  | 
                                                        |
| 158 | 158 | IoInterface::VERBOSITY_NORMAL  | 
                                                        
| 159 | 159 | );  | 
                                                        
| 160 | 160 | }  | 
                                                        
@@ -104,7 +104,7 @@ discard block  | 
                                                    ||
| 104 | 104 |      { | 
                                                        
| 105 | 105 | $appConfig = $this->getAppConfig();  | 
                                                        
| 106 | 106 | |
| 107 | - $isDebug = (bool)($appConfig[A::KEY_IS_DEBUG] ?? false);  | 
                                                        |
| 107 | + $isDebug = (bool) ($appConfig[A::KEY_IS_DEBUG] ?? false);  | 
                                                        |
| 108 | 108 | |
| 109 | 109 | return [  | 
                                                        
| 110 | 110 | static::KEY_IS_DEBUG => $isDebug,  | 
                                                        
@@ -129,8 +129,8 @@ discard block  | 
                                                    ||
| 129 | 129 | */  | 
                                                        
| 130 | 130 | private function getTemplateNames(string $templatesFolder, string $templatesFileMask): array  | 
                                                        
| 131 | 131 |      { | 
                                                        
| 132 | -        return iterator_to_array(call_user_func(function () use ($templatesFolder, $templatesFileMask) { | 
                                                        |
| 133 | - $flags =  | 
                                                        |
| 132 | +        return iterator_to_array(call_user_func(function() use ($templatesFolder, $templatesFileMask) { | 
                                                        |
| 133 | + $flags =  | 
                                                        |
| 134 | 134 | RecursiveDirectoryIterator::SKIP_DOTS |  | 
                                                        
| 135 | 135 | RecursiveDirectoryIterator::FOLLOW_SYMLINKS |  | 
                                                        
| 136 | 136 | RecursiveDirectoryIterator::CURRENT_AS_FILEINFO;  | 
                                                        
@@ -138,8 +138,8 @@ discard block  | 
                                                    ||
| 138 | 138 |              foreach ($iterator as $found) { | 
                                                        
| 139 | 139 | /** @var SplFileInfo $found */  | 
                                                        
| 140 | 140 |                  if ($found->isFile() === true && fnmatch($templatesFileMask, $found->getFilename()) === true) { | 
                                                        
| 141 | - $fullFileName = $found->getPath() . DIRECTORY_SEPARATOR . $found->getFilename();  | 
                                                        |
| 142 | - $templateName = str_replace($templatesFolder . DIRECTORY_SEPARATOR, '', $fullFileName);  | 
                                                        |
| 141 | + $fullFileName = $found->getPath().DIRECTORY_SEPARATOR.$found->getFilename();  | 
                                                        |
| 142 | + $templateName = str_replace($templatesFolder.DIRECTORY_SEPARATOR, '', $fullFileName);  | 
                                                        |
| 143 | 143 | yield $templateName;  | 
                                                        
| 144 | 144 | }  | 
                                                        
| 145 | 145 | }  |