Completed
Push — master ( 94b3dd...8faf89 )
by Iman
01:25
created
src/CheckNamespaces.php 1 patch
Doc Comments   +11 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      * Get all of the listeners and their corresponding events.
18 18
      *
19
-     * @param  iterable  $paths
19
+     * @param  \Symfony\Component\Finder\Finder  $paths
20 20
      * @param  $composerPath
21 21
      * @param  $composerNamespace
22
-     * @param  $command
22
+     * @param  Commands\CheckPsr4 $command
23 23
      *
24 24
      * @return void
25 25
      */
@@ -82,6 +82,9 @@  discard block
 block discarded – undo
82 82
         app(ErrorPrinter::class)->counts['total'] = 0;
83 83
     }
84 84
 
85
+    /**
86
+     * @param string $relativePath
87
+     */
85 88
     private static function warn($currentNamespace, $relativePath)
86 89
     {
87 90
         /**
@@ -106,6 +109,9 @@  discard block
 block discarded – undo
106 109
         return Str::startsWith($buffer, '<?php');
107 110
     }
108 111
 
112
+    /**
113
+     * @param string $correctNamespace
114
+     */
109 115
     protected static function doNamespaceCorrection($absFilePath, $currentNamespace, $correctNamespace)
110 116
     {
111 117
         event('laravel_microscope.namespace_fixing', get_defined_vars());
@@ -113,6 +119,9 @@  discard block
 block discarded – undo
113 119
         event('laravel_microscope.namespace_fixed', get_defined_vars());
114 120
     }
115 121
 
122
+    /**
123
+     * @param string $correctNamespace
124
+     */
116 125
     private static function ask($command, $correctNamespace)
117 126
     {
118 127
         return $command->getOutput()->confirm('Do you want to change it to: '.$correctNamespace, true);
Please login to merge, or discard this patch.
src/ErrorReporters/ErrorPrinter.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -62,6 +62,10 @@  discard block
 block discarded – undo
62 62
         $this->pendError($absPath, $lineNumber, $relatedModel, 'badRelation', $header);
63 63
     }
64 64
 
65
+    /**
66
+     * @param string $key
67
+     * @param string $header
68
+     */
65 69
     public function pendError($path, $lineNumber, $absent, $key, $header)
66 70
     {
67 71
         array_push($this->counts[$key], (new PendingError($key))
@@ -79,6 +83,11 @@  discard block
 block discarded – undo
79 83
             ->link($absPath, $lineNumber));
80 84
     }
81 85
 
86
+    /**
87
+     * @param string $absent
88
+     * @param string $key
89
+     * @param string $header
90
+     */
82 91
     public function simplePendError($path, $lineNumber, $absent, $key, $header)
83 92
     {
84 93
         array_push($this->counts[$key], (new PendingError($key))
@@ -165,6 +174,9 @@  discard block
 block discarded – undo
165 174
             ->link($absPath, $lineNumber));
166 175
     }
167 176
 
177
+    /**
178
+     * @param integer $len
179
+     */
168 180
     public function print($msg, $path = '|  ', $len = null)
169 181
     {
170 182
         ! $len && $len = PendingError::$maxLength + 1;
@@ -180,6 +192,9 @@  discard block
 block discarded – undo
180 192
         $this->printer->writeln($path.$msg.str_repeat(' ', $len).'|');
181 193
     }
182 194
 
195
+    /**
196
+     * @param string $msg
197
+     */
183 198
     public function printHeader($msg)
184 199
     {
185 200
         $number = ++$this->counts['total'];
Please login to merge, or discard this patch.