@@ -57,11 +57,11 @@ discard block |
||
| 57 | 57 | if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) { |
| 58 | 58 | $output->writeln("<fg=green>Cache instance {$name} cleared</>"); |
| 59 | 59 | } |
| 60 | - }catch (phpFastCacheDriverCheckException $e){ |
|
| 60 | + } catch (phpFastCacheDriverCheckException $e){ |
|
| 61 | 61 | $failedInstances[] = $name; |
| 62 | 62 | if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) { |
| 63 | 63 | $output->writeln("<fg=red>Cache instance {$name} not cleared, got exception: " . "<bg=red;options=bold>" . $e->getMessage() ."</>"); |
| 64 | - }else{ |
|
| 64 | + } else{ |
|
| 65 | 65 | $output->writeln("<fg=red>Cache instance {$name} not cleared (increase verbosity to get more information).</>"); |
| 66 | 66 | } |
| 67 | 67 | } |
@@ -73,10 +73,10 @@ discard block |
||
| 73 | 73 | $callback($driver); |
| 74 | 74 | if(!count($failedInstances)){ |
| 75 | 75 | $io->success("Cache instance {$driver} cleared"); |
| 76 | - }else{ |
|
| 76 | + } else{ |
|
| 77 | 77 | $io->error("Cache instance {$driver} not cleared"); |
| 78 | 78 | } |
| 79 | - }else{ |
|
| 79 | + } else{ |
|
| 80 | 80 | $io->error("Cache instance {$driver} does not exists"); |
| 81 | 81 | } |
| 82 | 82 | } else { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | if(!count($failedInstances)){ |
| 87 | 87 | $io->success('All caches instances got cleared'); |
| 88 | - }else{ |
|
| 88 | + } else{ |
|
| 89 | 89 | $io->success('Almost all caches instances got cleared, except these: ' . implode(', ', $failedInstances)); |
| 90 | 90 | } |
| 91 | 91 | } |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | { |
| 184 | 184 | if(isset($this->twig_cache_blocks[$blockName])){ |
| 185 | 185 | $this->twig_cache_blocks[$blockName] = array_merge($this->twig_cache_blocks[$blockName], $cacheBlock); |
| 186 | - }else{ |
|
| 186 | + } else{ |
|
| 187 | 187 | $this->twig_cache_blocks[$blockName] = $cacheBlock; |
| 188 | 188 | } |
| 189 | 189 | |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | |
| 87 | 87 | if(!empty($cacheData) && $this->config['twig_block_debug']){ |
| 88 | 88 | return "<!-- BEGIN CACHE BLOCK OUTPUT '{$unprefixedKey}' -->\n{$cacheData}\n<!-- // END CACHE BLOCK OUTPUT '{$unprefixedKey}' -->"; |
| 89 | - }else{ |
|
| 89 | + } else{ |
|
| 90 | 90 | return $cacheData; |
| 91 | 91 | } |
| 92 | 92 | } |