@@ -31,7 +31,7 @@ |
||
31 | 31 | try{ |
32 | 32 | $cache9 = $this->get('phpfastcache')->get('apccache'); |
33 | 33 | $cache10 = $this->get('phpfastcache')->get('apcucache'); |
34 | - }catch(PhpfastcacheDriverCheckException $e){ |
|
34 | + } catch(PhpfastcacheDriverCheckException $e){ |
|
35 | 35 | $cache11 = $this->get('phpfastcache')->get('xcachecache'); |
36 | 36 | } |
37 | 37 |
@@ -103,7 +103,7 @@ |
||
103 | 103 | new $configClass($this->config[ 'drivers' ][ $name ][ 'parameters' ]) |
104 | 104 | ) |
105 | 105 | ); |
106 | - }else{ |
|
106 | + } else{ |
|
107 | 107 | throw new PhpfastcacheInvalidConfigurationException('Invalid configuration class name: ' . $configClass); |
108 | 108 | } |
109 | 109 | } |
@@ -58,11 +58,11 @@ discard block |
||
58 | 58 | if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) { |
59 | 59 | $output->writeln("<fg=green>Cache instance {$name} cleared</>"); |
60 | 60 | } |
61 | - }catch (PhpfastcacheDriverCheckException $e){ |
|
61 | + } catch (PhpfastcacheDriverCheckException $e){ |
|
62 | 62 | $failedInstances[] = $name; |
63 | 63 | if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) { |
64 | 64 | $output->writeln("<fg=red>Cache instance {$name} not cleared, got exception: " . "<bg=red;options=bold>" . $e->getMessage() ."</>"); |
65 | - }else{ |
|
65 | + } else{ |
|
66 | 66 | $output->writeln("<fg=red>Cache instance {$name} not cleared (increase verbosity to get more information).</>"); |
67 | 67 | } |
68 | 68 | } |
@@ -74,10 +74,10 @@ discard block |
||
74 | 74 | $callback($driver); |
75 | 75 | if(!\count($failedInstances)){ |
76 | 76 | $io->success("Cache instance {$driver} cleared"); |
77 | - }else{ |
|
77 | + } else{ |
|
78 | 78 | $io->error("Cache instance {$driver} not cleared"); |
79 | 79 | } |
80 | - }else{ |
|
80 | + } else{ |
|
81 | 81 | $io->error("Cache instance {$driver} does not exists"); |
82 | 82 | } |
83 | 83 | } else { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | if(!\count($failedInstances)){ |
88 | 88 | $io->success('All caches instances got cleared'); |
89 | - }else{ |
|
89 | + } else{ |
|
90 | 90 | $io->success('Almost all caches instances got cleared, except these: ' . \implode(', ', $failedInstances)); |
91 | 91 | } |
92 | 92 | } |
@@ -194,7 +194,7 @@ |
||
194 | 194 | { |
195 | 195 | if(isset($this->twig_cache_blocks[$blockName])){ |
196 | 196 | $this->twig_cache_blocks[$blockName] = \array_merge($this->twig_cache_blocks[$blockName], $cacheBlock); |
197 | - }else{ |
|
197 | + } else{ |
|
198 | 198 | $this->twig_cache_blocks[$blockName] = $cacheBlock; |
199 | 199 | } |
200 | 200 |