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