Completed
Push — V3 ( d50e1b...88c11f )
by Georges
01:54
created
src/Command/PhpfastcacheCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.