@@ -68,6 +68,9 @@ discard block |
||
68 | 68 | $this->printFinalMsg($fixedFilesCount); |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param integer $tries |
|
73 | + */ |
|
71 | 74 | private function fix($filePath, $tokens, $tries) |
72 | 75 | { |
73 | 76 | Refactor::saveTokens($filePath, $tokens, $this->option('test')); |
@@ -85,6 +88,9 @@ discard block |
||
85 | 88 | return [$fixes, $tokens]; |
86 | 89 | } |
87 | 90 | |
91 | + /** |
|
92 | + * @param integer $fixed |
|
93 | + */ |
|
88 | 94 | private function printFinalMsg($fixed) |
89 | 95 | { |
90 | 96 | if ($fixed > 0) { |
@@ -60,6 +60,9 @@ |
||
60 | 60 | return 'Error on route '.$msg; |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param ErrorPrinter $errorPrinter |
|
65 | + */ |
|
63 | 66 | private function checkRouteDefinitions($errorPrinter, $routes) |
64 | 67 | { |
65 | 68 | foreach ($routes as $route) { |
@@ -4,13 +4,13 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | 6 | use Illuminate\Support\Facades\View; |
7 | -use Imanghafoori\LaravelMicroscope\BladeFiles; |
|
8 | -use Imanghafoori\LaravelMicroscope\Analyzers\FilePath; |
|
9 | -use Imanghafoori\LaravelMicroscope\ErrorTypes\BladeFile; |
|
10 | -use Imanghafoori\LaravelMicroscope\SpyClasses\RoutePaths; |
|
11 | 7 | use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson; |
8 | +use Imanghafoori\LaravelMicroscope\Analyzers\FilePath; |
|
12 | 9 | use Imanghafoori\LaravelMicroscope\Analyzers\FunctionCall; |
10 | +use Imanghafoori\LaravelMicroscope\BladeFiles; |
|
13 | 11 | use Imanghafoori\LaravelMicroscope\Checks\CheckViewFilesExistence; |
12 | +use Imanghafoori\LaravelMicroscope\ErrorTypes\BladeFile; |
|
13 | +use Imanghafoori\LaravelMicroscope\SpyClasses\RoutePaths; |
|
14 | 14 | |
15 | 15 | class CheckViews extends Command |
16 | 16 | { |