Completed
Push — master ( 0c3d53...94b3dd )
by Iman
01:26
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
         $p = app(ErrorPrinter::class);
@@ -103,6 +106,9 @@  discard block
 block discarded – undo
103 106
         return Str::startsWith($buffer, '<?php');
104 107
     }
105 108
 
109
+    /**
110
+     * @param string $correctNamespace
111
+     */
106 112
     protected static function doNamespaceCorrection($absFilePath, $currentNamespace, $correctNamespace)
107 113
     {
108 114
         event('laravel_microscope.namespace_fixing', get_defined_vars());
@@ -110,6 +116,9 @@  discard block
 block discarded – undo
110 116
         event('laravel_microscope.namespace_fixed', get_defined_vars());
111 117
     }
112 118
 
119
+    /**
120
+     * @param string $correctNamespace
121
+     */
113 122
     private static function ask($command, $correctNamespace)
114 123
     {
115 124
         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
         $this->print('');
Please login to merge, or discard this patch.