Completed
Push — master ( f1ee74...b019b7 )
by Iman
01:24
created
src/ErrorReporters/ErrorPrinter.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -47,6 +47,10 @@  discard block
 block discarded – undo
47 47
         $this->pendError($absPath, $lineNumber, $relatedModel, 'badRelation', $header);
48 48
     }
49 49
 
50
+    /**
51
+     * @param string $key
52
+     * @param string $header
53
+     */
50 54
     public function pendError($path, $lineNumber, $absent, $key, $header)
51 55
     {
52 56
         ($this->errorsList[$key][] = (new PendingError($key))
@@ -64,6 +68,11 @@  discard block
 block discarded – undo
64 68
             ->link($absPath, $lineNumber));
65 69
     }
66 70
 
71
+    /**
72
+     * @param string $absent
73
+     * @param string $key
74
+     * @param string $header
75
+     */
67 76
     public function simplePendError($path, $lineNumber, $absent, $key, $header)
68 77
     {
69 78
         ($this->errorsList[$key][] = (new PendingError($key))
@@ -150,6 +159,9 @@  discard block
 block discarded – undo
150 159
             ->link($absPath, $lineNumber));
151 160
     }
152 161
 
162
+    /**
163
+     * @param integer $len
164
+     */
153 165
     public function print($msg, $path = '|  ', $len = null)
154 166
     {
155 167
         ! $len && $len = PendingError::$maxLength + 1;
@@ -165,6 +177,9 @@  discard block
 block discarded – undo
165 177
         $this->printer->writeln($path.$msg.str_repeat(' ', $len).'|');
166 178
     }
167 179
 
180
+    /**
181
+     * @param string $msg
182
+     */
168 183
     public function printHeader($msg)
169 184
     {
170 185
         $number = ++$this->errorsList['total'];
@@ -223,6 +238,9 @@  discard block
 block discarded – undo
223 238
         }
224 239
     }
225 240
 
241
+    /**
242
+     * @param string $key
243
+     */
226 244
     public function getCount($key)
227 245
     {
228 246
         return count($this->errorsList[$key] ?? []);
Please login to merge, or discard this patch.
src/Checks/ActionsComments.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
         }
29 29
     }
30 30
 
31
+    /**
32
+     * @param string $fullNamespace
33
+     */
31 34
     protected static function checkActions($tokens, $fullNamespace, $path)
32 35
     {
33 36
         $class = ClassMethods::read($tokens);
@@ -73,6 +76,9 @@  discard block
 block discarded – undo
73 76
         return $routelessActions;
74 77
     }
75 78
 
79
+    /**
80
+     * @param \Illuminate\Routing\Route $route
81
+     */
76 82
     protected static function getMsg($methods, $route)
77 83
     {
78 84
         $msg = '/**'."\n";
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Imanghafoori\LaravelMicroscope\Checks;
4 4
 
5
-use Imanghafoori\LaravelMicroscope\Analyzers\Refactor;
6 5
 use Imanghafoori\LaravelMicroscope\Analyzers\ClassMethods;
6
+use Imanghafoori\LaravelMicroscope\Analyzers\Refactor;
7 7
 
8 8
 class ActionsComments
9 9
 {
Please login to merge, or discard this patch.