Passed
Push — master ( 669b25...d7fc30 )
by Anton
04:46 queued 11s
created
src/Command/Views/ResetCommand.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,20 +27,20 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function perform(ViewsConfig $config, FilesInterface $files)
29 29
     {
30
-        if (!$files->exists($config->getCacheDirectory())) {
30
+        if (!$files->exists($config->getCacheDirectory())){
31 31
             $this->writeln("Cache directory is missing, no cache to be cleaned.");
32 32
 
33 33
             return;
34 34
         }
35 35
 
36
-        if ($this->isVerbose()) {
36
+        if ($this->isVerbose()){
37 37
             $this->writeln("<info>Cleaning view cache:</info>");
38 38
         }
39 39
 
40
-        foreach ($files->getFiles($config->getCacheDirectory()) as $filename) {
41
-            try {
40
+        foreach ($files->getFiles($config->getCacheDirectory()) as $filename){
41
+            try{
42 42
                 $files->delete($filename);
43
-            } catch (\Throwable $e) {
43
+            }catch (\Throwable $e){
44 44
                 // @codeCoverageIgnoreStart
45 45
                 $this->sprintf("<fg=red>[errored]</fg=red> `%s`: <fg=red>%s</fg=red>\n",
46 46
                     $files->relativePath($filename, $config->getCacheDirectory()),
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                 // @codeCoverageIgnoreEnd
53 53
             }
54 54
 
55
-            if ($this->isVerbose()) {
55
+            if ($this->isVerbose()){
56 56
                 $this->sprintf(
57 57
                     "<fg=green>[deleted]</fg=green> `%s`\n",
58 58
                     $files->relativePath($filename, $config->getCacheDirectory())
Please login to merge, or discard this patch.
Braces   +13 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,20 +27,26 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function perform(ViewsConfig $config, FilesInterface $files)
29 29
     {
30
-        if (!$files->exists($config->getCacheDirectory())) {
30
+        if (!$files->exists($config->getCacheDirectory()))
31
+        {
31 32
             $this->writeln("Cache directory is missing, no cache to be cleaned.");
32 33
 
33 34
             return;
34 35
         }
35 36
 
36
-        if ($this->isVerbose()) {
37
+        if ($this->isVerbose())
38
+        {
37 39
             $this->writeln("<info>Cleaning view cache:</info>");
38 40
         }
39 41
 
40
-        foreach ($files->getFiles($config->getCacheDirectory()) as $filename) {
41
-            try {
42
+        foreach ($files->getFiles($config->getCacheDirectory()) as $filename)
43
+        {
44
+            try
45
+            {
42 46
                 $files->delete($filename);
43
-            } catch (\Throwable $e) {
47
+            }
48
+            catch (\Throwable $e)
49
+            {
44 50
                 // @codeCoverageIgnoreStart
45 51
                 $this->sprintf("<fg=red>[errored]</fg=red> `%s`: <fg=red>%s</fg=red>\n",
46 52
                     $files->relativePath($filename, $config->getCacheDirectory()),
@@ -52,7 +58,8 @@  discard block
 block discarded – undo
52 58
                 // @codeCoverageIgnoreEnd
53 59
             }
54 60
 
55
-            if ($this->isVerbose()) {
61
+            if ($this->isVerbose())
62
+            {
56 63
                 $this->sprintf(
57 64
                     "<fg=green>[deleted]</fg=green> `%s`\n",
58 65
                     $files->relativePath($filename, $config->getCacheDirectory())
Please login to merge, or discard this patch.