@@ -53,13 +53,13 @@ |
||
53 | 53 | protected function configure() |
54 | 54 | { |
55 | 55 | $this |
56 | - ->setName('phpfastcache:clear') |
|
57 | - ->setDescription('Clear phpfastcache cache') |
|
58 | - ->addArgument( |
|
56 | + ->setName('phpfastcache:clear') |
|
57 | + ->setDescription('Clear phpfastcache cache') |
|
58 | + ->addArgument( |
|
59 | 59 | 'driver', |
60 | 60 | InputArgument::OPTIONAL, |
61 | 61 | 'Cache name to clear' |
62 | - ); |
|
62 | + ); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | $output->writeln('<bg=yellow;fg=red>Clearing cache operation can take a while, please be patient...</>'); |
78 | 78 | |
79 | - $callback = function ($name) use ($output, &$failedInstances) { |
|
79 | + $callback = function($name) use ($output, &$failedInstances) { |
|
80 | 80 | try { |
81 | 81 | if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) { |
82 | 82 | $output->writeln("<fg=yellow>Clearing instance {$name} cache...</>"); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $caches = $this->parameters; |
99 | 99 | |
100 | 100 | if ($driver) { |
101 | - if (\array_key_exists($driver, $caches[ 'drivers' ])) { |
|
101 | + if (\array_key_exists($driver, $caches['drivers'])) { |
|
102 | 102 | $callback($driver); |
103 | 103 | if (!\count($failedInstances)) { |
104 | 104 | $io->success("Cache instance {$driver} cleared"); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $io->error("Cache instance {$driver} does not exists"); |
110 | 110 | } |
111 | 111 | } else { |
112 | - foreach ($caches[ 'drivers' ] as $name => $parameters) { |
|
112 | + foreach ($caches['drivers'] as $name => $parameters) { |
|
113 | 113 | $callback($name); |
114 | 114 | } |
115 | 115 | if (!\count($failedInstances)) { |