@@ -14,10 +14,10 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * Get all of the listeners and their corresponding events. |
16 | 16 | * |
17 | - * @param iterable $paths |
|
17 | + * @param \Symfony\Component\Finder\Finder $paths |
|
18 | 18 | * @param $composerPath |
19 | 19 | * @param $composerNamespace |
20 | - * @param $command |
|
20 | + * @param Commands\CheckPsr4 $command |
|
21 | 21 | * |
22 | 22 | * @return void |
23 | 23 | */ |
@@ -72,6 +72,9 @@ discard block |
||
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param string $relativePath |
|
77 | + */ |
|
75 | 78 | private static function warn($currentNamespace, $relativePath) |
76 | 79 | { |
77 | 80 | $p = app(ErrorPrinter::class); |
@@ -93,6 +96,9 @@ discard block |
||
93 | 96 | return Str::startsWith($buffer, '<?php'); |
94 | 97 | } |
95 | 98 | |
99 | + /** |
|
100 | + * @param string $correctNamespace |
|
101 | + */ |
|
96 | 102 | protected static function doNamespaceCorrection($absFilePath, $currentNamespace, $correctNamespace) |
97 | 103 | { |
98 | 104 | event('laravel_microscope.namespace_fixing', get_defined_vars()); |
@@ -100,6 +106,9 @@ discard block |
||
100 | 106 | event('laravel_microscope.namespace_fixed', get_defined_vars()); |
101 | 107 | } |
102 | 108 | |
109 | + /** |
|
110 | + * @param string $correctNamespace |
|
111 | + */ |
|
103 | 112 | private static function ask($command, $correctNamespace) |
104 | 113 | { |
105 | 114 | return $command->getOutput()->confirm('Do you want to change it to: '.$correctNamespace, true); |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Support\Str; |
6 | 6 | use Imanghafoori\LaravelMicroscope\Analyzers\FilePath; |
7 | -use Imanghafoori\LaravelMicroscope\LaravelPaths\MigrationPaths; |
|
8 | 7 | use Imanghafoori\LaravelMicroscope\Analyzers\GetClassProperties; |
9 | 8 | use Imanghafoori\LaravelMicroscope\Analyzers\NamespaceCorrector; |
10 | 9 | use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
10 | +use Imanghafoori\LaravelMicroscope\LaravelPaths\MigrationPaths; |
|
11 | 11 | |
12 | 12 | class CheckNamespaces |
13 | 13 | { |