@@ -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 |
@@ -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 | } |