@@ -63,6 +63,9 @@ |
||
63 | 63 | } |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @return string |
|
68 | + */ |
|
66 | 69 | private function stringify($event) |
67 | 70 | { |
68 | 71 | return is_object($event) ? get_class($event) : $event; |
@@ -23,6 +23,9 @@ |
||
23 | 23 | } |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @param integer $i |
|
28 | + */ |
|
26 | 29 | private function isEnvMake($tokens, $i) |
27 | 30 | { |
28 | 31 | $methods = [ |
@@ -50,8 +50,8 @@ |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * @param $incorrectNamespace |
|
54 | - * @param $correctNamespace |
|
53 | + * @param string $incorrectNamespace |
|
54 | + * @param string $correctNamespace |
|
55 | 55 | * |
56 | 56 | * @return array |
57 | 57 | */ |
@@ -15,8 +15,7 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * Get all of the listeners and their corresponding events. |
17 | 17 | * |
18 | - * @param iterable $files |
|
19 | - * @param string $basePath |
|
18 | + * @param Finder $files |
|
20 | 19 | * |
21 | 20 | * @param $composerPath |
22 | 21 | * @param $composerNamespace |
@@ -91,7 +90,7 @@ discard block |
||
91 | 90 | /** |
92 | 91 | * Get all of the listeners and their corresponding events. |
93 | 92 | * |
94 | - * @param iterable $paths |
|
93 | + * @param Finder $paths |
|
95 | 94 | * @param $composerPath |
96 | 95 | * @param $composerNamespace |
97 | 96 | * |
@@ -200,6 +199,10 @@ discard block |
||
200 | 199 | return ! class_exists($imp) && ! interface_exists($imp) && ! trait_exists($imp); |
201 | 200 | } |
202 | 201 | |
202 | + /** |
|
203 | + * @param string $correctNamespace |
|
204 | + * @param string $classPath |
|
205 | + */ |
|
203 | 206 | protected static function doNamespaceCorrection($correctNamespace, $classPath, $currentNamespace, $absFilePath) |
204 | 207 | { |
205 | 208 | // maybe an event listener |
@@ -80,6 +80,9 @@ |
||
80 | 80 | } |
81 | 81 | } |
82 | 82 | |
83 | + /** |
|
84 | + * @param string $msg |
|
85 | + */ |
|
83 | 86 | protected function warnDumping($msg) |
84 | 87 | { |
85 | 88 | $this->info('It seems composer has some trouble with autoload...'); |
@@ -7,8 +7,8 @@ |
||
7 | 7 | use Illuminate\Support\Composer; |
8 | 8 | use Illuminate\Support\Str; |
9 | 9 | use Imanghafoori\LaravelMicroscope\CheckClasses; |
10 | -use Imanghafoori\LaravelMicroscope\Checks\CheckClassReferences; |
|
11 | 10 | use Imanghafoori\LaravelMicroscope\CheckViews; |
11 | +use Imanghafoori\LaravelMicroscope\Checks\CheckClassReferences; |
|
12 | 12 | use Imanghafoori\LaravelMicroscope\Contracts\FileCheckContract; |
13 | 13 | use Imanghafoori\LaravelMicroscope\ErrorPrinter; |
14 | 14 | use Imanghafoori\LaravelMicroscope\Traits\LogsErrors; |
@@ -71,8 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * Get all of the listeners and their corresponding events. |
73 | 73 | * |
74 | - * @param iterable $classes |
|
75 | - * @param string $basePath |
|
74 | + * @param Finder $classes |
|
76 | 75 | * |
77 | 76 | * @param $composerPath |
78 | 77 | * @param $composerNamespace |
@@ -105,7 +104,7 @@ discard block |
||
105 | 104 | |
106 | 105 | /** |
107 | 106 | * @param $method |
108 | - * @param $ctrl |
|
107 | + * @param string $ctrl |
|
109 | 108 | */ |
110 | 109 | protected function checkViews($ctrl) |
111 | 110 | { |
@@ -39,6 +39,10 @@ discard block |
||
39 | 39 | ->link($linkPath, $linkLineNum)); |
40 | 40 | } |
41 | 41 | |
42 | + /** |
|
43 | + * @param string $errorIt |
|
44 | + * @param string $errorTxt |
|
45 | + */ |
|
42 | 46 | public function route($path, $errorIt, $errorTxt, $linkPath = null, $linkLineNum = 0) |
43 | 47 | { |
44 | 48 | array_push($this->counts['route'], (new PendingError('route')) |
@@ -119,6 +123,9 @@ discard block |
||
119 | 123 | $this->printer->writeln($path.$msg.str_repeat(' ', $len).'| '); |
120 | 124 | } |
121 | 125 | |
126 | + /** |
|
127 | + * @param string $msg |
|
128 | + */ |
|
122 | 129 | public function printHeader($msg) |
123 | 130 | { |
124 | 131 | $this->print(''); |