@@ -3,15 +3,15 @@ |
||
3 | 3 | namespace Imanghafoori\LaravelMicroscope\Commands; |
4 | 4 | |
5 | 5 | use Exception; |
6 | -use Illuminate\Support\Str; |
|
7 | -use Illuminate\Routing\Router; |
|
8 | 6 | use Illuminate\Console\Command; |
9 | -use Imanghafoori\LaravelMicroscope\Psr4Classes; |
|
7 | +use Illuminate\Routing\Router; |
|
8 | +use Illuminate\Support\Str; |
|
10 | 9 | use Imanghafoori\LaravelMicroscope\BladeFiles; |
11 | -use Imanghafoori\LaravelMicroscope\Traits\LogsErrors; |
|
12 | 10 | use Imanghafoori\LaravelMicroscope\Checks\CheckRouteCalls; |
13 | 11 | use Imanghafoori\LaravelMicroscope\Checks\RoutelessActions; |
14 | 12 | use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
13 | +use Imanghafoori\LaravelMicroscope\Psr4Classes; |
|
14 | +use Imanghafoori\LaravelMicroscope\Traits\LogsErrors; |
|
15 | 15 | |
16 | 16 | class CheckRoutes extends Command |
17 | 17 | { |
@@ -4,13 +4,13 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | 6 | use Illuminate\Support\Facades\View; |
7 | -use Imanghafoori\LaravelMicroscope\Analyzers\FilePath; |
|
8 | -use Imanghafoori\LaravelMicroscope\SpyClasses\RoutePaths; |
|
9 | -use Imanghafoori\LaravelMicroscope\ErrorTypes\BladeFile; |
|
10 | 7 | use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson; |
11 | -use Imanghafoori\LaravelMicroscope\BladeFiles; |
|
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 | { |
@@ -71,6 +71,9 @@ |
||
71 | 71 | return [$tokens, $changes]; |
72 | 72 | } |
73 | 73 | |
74 | + /** |
|
75 | + * @return string |
|
76 | + */ |
|
74 | 77 | private static function getKeyword($token) |
75 | 78 | { |
76 | 79 | return self::scopeKeywords[$token]; |
@@ -54,6 +54,9 @@ discard block |
||
54 | 54 | } |
55 | 55 | } |
56 | 56 | |
57 | + /** |
|
58 | + * @return string |
|
59 | + */ |
|
57 | 60 | private function stringify($event) |
58 | 61 | { |
59 | 62 | return is_object($event) ? get_class($event) : $event; |
@@ -75,6 +78,9 @@ discard block |
||
75 | 78 | return 'The method of '.$at.' is not callable as an event listener for "'.$e.'" event'; |
76 | 79 | } |
77 | 80 | |
81 | + /** |
|
82 | + * @return string |
|
83 | + */ |
|
78 | 84 | protected function getTypeHintedClass($listenerObj, $methodName) |
79 | 85 | { |
80 | 86 | $ref = new \ReflectionParameter([$listenerObj, $methodName], 0); |