@@ -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; |
@@ -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\ErrorReporters\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 | { |
@@ -27,6 +27,10 @@ discard block |
||
| 27 | 27 | ->link($path, $lineNumber)); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param string $errorIt |
|
| 32 | + * @param string $errorTxt |
|
| 33 | + */ |
|
| 30 | 34 | public function route($path, $errorIt, $errorTxt, $linkPath = null, $linkLineNum = 0) |
| 31 | 35 | { |
| 32 | 36 | array_push($this->counts['route'], (new PendingError('route')) |
@@ -107,6 +111,9 @@ discard block |
||
| 107 | 111 | $this->printer->writeln($path.$msg.str_repeat(' ', $len).'| '); |
| 108 | 112 | } |
| 109 | 113 | |
| 114 | + /** |
|
| 115 | + * @param string $msg |
|
| 116 | + */ |
|
| 110 | 117 | public function printHeader($msg) |
| 111 | 118 | { |
| 112 | 119 | $this->print(''); |