Completed
Push — master ( 45e66e...a2014d )
by Kacper
03:25
created
bin/Commands/Test/RegenerateCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         /** @var \SplFileInfo $file */
53 53
         foreach ($iterator as $file) {
54 54
             $pathname = substr($file->getPathname(), strlen($this->_input) + 1);
55
-            if(!$this->regenerate($input, $pathname)) {
55
+            if (!$this->regenerate($input, $pathname)) {
56 56
                 continue;
57 57
             }
58 58
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             $language = Language::byFilename($pathname);
62 62
             $result = StringHelper::normalize($this->_keylighter->highlight(file_get_contents($file->getPathname()), $language, $this->_formatter));
63 63
 
64
-            if(!file_exists($this->_output.'/'.dirname($pathname))) {
64
+            if (!file_exists($this->_output.'/'.dirname($pathname))) {
65 65
                 mkdir($this->_output.'/'.dirname($pathname), true);
66 66
             }
67 67
 
@@ -73,12 +73,12 @@  discard block
 block discarded – undo
73 73
         $filename = str_replace(DIRECTORY_SEPARATOR, '/', $filename);
74 74
         $patterns = $input->getArgument('files');
75 75
 
76
-        foreach($patterns as $pattern) {
77
-            if($input->getOption('new') && file_exists("{$this->_output}/$filename.tkn")) {
76
+        foreach ($patterns as $pattern) {
77
+            if ($input->getOption('new') && file_exists("{$this->_output}/$filename.tkn")) {
78 78
                 continue;
79 79
             }
80 80
 
81
-            if(fnmatch($pattern, $filename)) {
81
+            if (fnmatch($pattern, $filename)) {
82 82
                 return true;
83 83
             }
84 84
         }
Please login to merge, or discard this patch.