Completed
Push — master ( bb46b9...a32f93 )
by Scott
02:02
created
src/PhpStanLoader.php 3 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -80,6 +80,9 @@  discard block
 block discarded – undo
80 80
         return $currentFile;
81 81
     }
82 82
 
83
+    /**
84
+     * @param string $line
85
+     */
83 86
     protected function getLineNumber($line)
84 87
     {
85 88
        $matches = [];
@@ -90,6 +93,9 @@  discard block
 block discarded – undo
90 93
        return $matches['lineNumber'];
91 94
     }
92 95
 
96
+    /**
97
+     * @param string $line
98
+     */
93 99
     protected function getMessage($line)
94 100
     {
95 101
         return trim(preg_replace($this->lineRegex, "", $line));
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -82,12 +82,12 @@
 block discarded – undo
82 82
 
83 83
     protected function getLineNumber($line)
84 84
     {
85
-       $matches = [];
86
-       if (!preg_match('' . $this->lineRegex, $line, $matches)) {
87
-           return false;
88
-       }
85
+        $matches = [];
86
+        if (!preg_match('' . $this->lineRegex, $line, $matches)) {
87
+            return false;
88
+        }
89 89
 
90
-       return $matches['lineNumber'];
90
+        return $matches['lineNumber'];
91 91
     }
92 92
 
93 93
     protected function getMessage($line)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     protected function checkForFilename($line, $currentFile)
76 76
     {
77 77
         if (strpos($line, " Line ")) {
78
-            return trim(str_replace('Line', '',$line));
78
+            return trim(str_replace('Line', '', $line));
79 79
         }
80 80
         return $currentFile;
81 81
     }
Please login to merge, or discard this patch.