Completed
Pull Request — master (#139)
by kazusuke
26s
created
src/Console/Command.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@
 block discarded – undo
203 203
         if (false === is_array($result)) {
204 204
             return array_filter(
205 205
                 explode(',', $result),
206
-                function ($value) {
206
+                function($value) {
207 207
                     return false === empty($value);
208 208
                 }
209 209
             );
Please login to merge, or discard this patch.
src/Extension/ArrayExtension.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         return (
22 22
             $parent instanceof ArrayItem  &&
23 23
             false === $this->ignoreArray($parent)
24
-          ) || $parent instanceof ArrayDimFetch;
24
+            ) || $parent instanceof ArrayDimFetch;
25 25
     }
26 26
 
27 27
     private function ignoreArray(ArrayItem $node): bool
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         $parent = $node->getAttribute('parent');
20 20
 
21 21
         return (
22
-            $parent instanceof ArrayItem  &&
22
+            $parent instanceof ArrayItem &&
23 23
             false === $this->ignoreArray($parent)
24 24
           ) || $parent instanceof ArrayDimFetch;
25 25
     }
Please login to merge, or discard this patch.
src/PHPFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             ->ignoreVCS(true)
32 32
             ->append(
33 33
                 array_map(
34
-                    function (string $file) {
34
+                    function(string $file) {
35 35
                         return new SplFileInfo(realpath($file), dirname($file), $file);
36 36
                     },
37 37
                     $files
Please login to merge, or discard this patch.
src/Printer/Xml.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,6 +78,6 @@
 block discarded – undo
78 78
 
79 79
         $dom->save($this->outputPath);
80 80
 
81
-        $output->writeln('XML generated at '.$this->outputPath);
81
+        $output->writeln('XML generated at ' . $this->outputPath);
82 82
     }
83 83
 }
Please login to merge, or discard this patch.
src/Printer/CheckStyle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
52 52
         $dom->save($this->outputPath);
53 53
 
54 54
         $output->writeln('Total of Magic Numbers ' . $total);
55
-        $output->writeln('checkstyle XML generated at '. $this->outputPath);
55
+        $output->writeln('checkstyle XML generated at ' . $this->outputPath);
56 56
     }
57 57
 }
Please login to merge, or discard this patch.
src/Printer/Util.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         $content = str_replace(["\r\n", "\r"], "\n", $content);
22 22
         $lines = explode("\n", $content);
23 23
 
24
-        $lineContent = array_slice($lines, $line-1, 1);
24
+        $lineContent = array_slice($lines, $line - 1, 1);
25 25
         $lineContent = reset($lineContent);
26 26
         $start = strpos($lineContent, (string) $text);
27 27
 
Please login to merge, or discard this patch.