Completed
Push — master ( 00b617...54bcf9 )
by Povilas
18s queued 10s
created
src/Console/Command.php 2 patches
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.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -300,6 +300,9 @@
 block discarded – undo
300 300
         return [];
301 301
     }
302 302
 
303
+    /**
304
+     * @return string
305
+     */
303 306
     private function convertFileDescriptorLink($path)
304 307
     {
305 308
         if (strpos($path, '/dev/fd') === 0) {
Please login to merge, or discard this patch.
src/Printer/Xml.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         $dom->save($this->outputPath);
88 88
 
89
-        $output->writeln('XML generated at '.$this->outputPath);
89
+        $output->writeln('XML generated at ' . $this->outputPath);
90 90
     }
91 91
 
92 92
     /**
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
         $content = str_replace(array("\r\n", "\r"), "\n", $content);
103 103
         $lines = explode("\n", $content);
104 104
 
105
-        $lineContent = array_slice($lines, $line-1, 1);
105
+        $lineContent = array_slice($lines, $line - 1, 1);
106 106
         $lineContent = reset($lineContent);
107
-        $start = strpos($lineContent, $text.'');
107
+        $start = strpos($lineContent, $text . '');
108 108
 
109 109
         return [
110 110
             'snippet' => $lineContent,
Please login to merge, or discard this patch.
src/Visitor/DetectorVisitor.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -6,16 +6,12 @@
 block discarded – undo
6 6
 use PhpParser\Node\Const_;
7 7
 use PhpParser\Node\Expr\UnaryMinus;
8 8
 use PhpParser\Node\Expr\UnaryPlus;
9
-use PhpParser\Node\Scalar;
10 9
 use PhpParser\Node\Scalar\DNumber;
11 10
 use PhpParser\Node\Scalar\LNumber;
12 11
 use PhpParser\Node\Scalar\String_;
13 12
 use PhpParser\NodeTraverser;
14 13
 use PhpParser\NodeVisitorAbstract;
15 14
 use Povils\PHPMND\Console\Option;
16
-use Povils\PHPMND\Extension\ArrayAwareExtension;
17
-use Povils\PHPMND\Extension\Extension;
18
-use Povils\PHPMND\Extension\FunctionAwareExtension;
19 15
 use Povils\PHPMND\FileReport;
20 16
 
21 17
 /**
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.