@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Imanghafoori\LaravelMicroscope\Refactors; |
4 | 4 | |
5 | -use Imanghafoori\LaravelMicroscope\Analyzers\Refactor; |
|
6 | 5 | use Imanghafoori\LaravelMicroscope\Analyzers\FunctionCall; |
6 | +use Imanghafoori\LaravelMicroscope\Analyzers\Refactor; |
|
7 | 7 | |
8 | 8 | class EarlyReturns |
9 | 9 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Imanghafoori\LaravelMicroscope\Refactors; |
4 | 4 | |
5 | -use Imanghafoori\LaravelMicroscope\Analyzers\Ifs; |
|
6 | 5 | use Imanghafoori\LaravelMicroscope\Analyzers\FunctionCall; |
6 | +use Imanghafoori\LaravelMicroscope\Analyzers\Ifs; |
|
7 | 7 | |
8 | 8 | class SyntaxNormalizer |
9 | 9 | { |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Routing\Controller; |
6 | 6 | use Imanghafoori\LaravelMicroscope\Analyzers\ClassMethods; |
7 | -use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
|
8 | 7 | use Imanghafoori\LaravelMicroscope\Analyzers\NamespaceCorrector; |
8 | +use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
|
9 | 9 | |
10 | 10 | class RoutelessActions |
11 | 11 | { |
@@ -2,21 +2,21 @@ |
||
2 | 2 | |
3 | 3 | namespace Imanghafoori\LaravelMicroscope; |
4 | 4 | |
5 | -use Illuminate\View\View; |
|
6 | -use Illuminate\Support\Str; |
|
5 | +use Illuminate\Contracts\Auth\Access\Gate as GateContract; |
|
6 | +use Illuminate\Contracts\Queue\Factory as QueueFactoryContract; |
|
7 | 7 | use Illuminate\Support\Facades\Event; |
8 | 8 | use Illuminate\Support\Facades\Route; |
9 | 9 | use Illuminate\Support\ServiceProvider; |
10 | +use Illuminate\Support\Str; |
|
11 | +use Illuminate\View\View; |
|
10 | 12 | use Imanghafoori\LaravelMicroscope\Commands; |
13 | +use Imanghafoori\LaravelMicroscope\ErrorReporters\ConsolePrinterInstaller; |
|
14 | +use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
|
15 | +use Imanghafoori\LaravelMicroscope\SpyClasses\SpyBladeCompiler; |
|
16 | +use Imanghafoori\LaravelMicroscope\SpyClasses\SpyDispatcher; |
|
11 | 17 | use Imanghafoori\LaravelMicroscope\SpyClasses\SpyGate; |
12 | 18 | use Imanghafoori\LaravelMicroscope\SpyClasses\SpyRouter; |
13 | 19 | use Imanghafoori\LaravelMicroscope\SpyClasses\ViewsData; |
14 | -use Illuminate\Contracts\Auth\Access\Gate as GateContract; |
|
15 | -use Imanghafoori\LaravelMicroscope\SpyClasses\SpyDispatcher; |
|
16 | -use Imanghafoori\LaravelMicroscope\SpyClasses\SpyBladeCompiler; |
|
17 | -use Illuminate\Contracts\Queue\Factory as QueueFactoryContract; |
|
18 | -use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
|
19 | -use Imanghafoori\LaravelMicroscope\ErrorReporters\ConsolePrinterInstaller; |
|
20 | 20 | |
21 | 21 | class LaravelMicroscopeServiceProvider extends ServiceProvider |
22 | 22 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Imanghafoori\LaravelMicroscope\Checks; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | 5 | use Illuminate\Support\Facades\View; |
6 | +use Illuminate\Support\Str; |
|
7 | 7 | use Imanghafoori\LaravelMicroscope\Analyzers\FunctionCall; |
8 | 8 | |
9 | 9 | class ExtractBladePartial |
@@ -3,13 +3,13 @@ |
||
3 | 3 | namespace Imanghafoori\LaravelMicroscope\Commands; |
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | -use Imanghafoori\LaravelMicroscope\Analyzers\Ifs; |
|
6 | +use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson; |
|
7 | 7 | use Imanghafoori\LaravelMicroscope\Analyzers\FilePath; |
8 | -use Imanghafoori\LaravelMicroscope\SpyClasses\RoutePaths; |
|
9 | 8 | use Imanghafoori\LaravelMicroscope\Analyzers\FunctionCall; |
10 | -use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson; |
|
9 | +use Imanghafoori\LaravelMicroscope\Analyzers\Ifs; |
|
11 | 10 | use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
12 | 11 | use Imanghafoori\LaravelMicroscope\ErrorTypes\CompactCall; |
12 | +use Imanghafoori\LaravelMicroscope\SpyClasses\RoutePaths; |
|
13 | 13 | |
14 | 14 | class CheckCompact extends Command |
15 | 15 | { |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Imanghafoori\LaravelMicroscope\Commands; |
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | +use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson; |
|
6 | 7 | use Imanghafoori\LaravelMicroscope\Analyzers\FilePath; |
7 | 8 | use Imanghafoori\LaravelMicroscope\Analyzers\Refactor; |
8 | -use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson; |
|
9 | 9 | use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
10 | 10 | |
11 | 11 | class CheckEarlyReturns extends Command |
@@ -4,14 +4,14 @@ |
||
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; |
13 | -use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
|
10 | +use Imanghafoori\LaravelMicroscope\BladeFiles; |
|
14 | 11 | use Imanghafoori\LaravelMicroscope\Checks\CheckViewFilesExistence; |
12 | +use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
|
13 | +use Imanghafoori\LaravelMicroscope\ErrorTypes\BladeFile; |
|
14 | +use Imanghafoori\LaravelMicroscope\SpyClasses\RoutePaths; |
|
15 | 15 | |
16 | 16 | class CheckViews extends Command |
17 | 17 | { |
@@ -4,18 +4,18 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | 6 | use Illuminate\Support\Composer; |
7 | -use Symfony\Component\Finder\Finder; |
|
8 | 7 | use Illuminate\Support\Facades\View; |
9 | -use Imanghafoori\LaravelMicroscope\CheckNamespaces; |
|
10 | -use Imanghafoori\LaravelMicroscope\FileReaders\Paths; |
|
11 | -use Imanghafoori\LaravelMicroscope\Analyzers\FilePath; |
|
12 | -use Imanghafoori\LaravelMicroscope\SpyClasses\RoutePaths; |
|
13 | 8 | use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson; |
9 | +use Imanghafoori\LaravelMicroscope\Analyzers\FilePath; |
|
10 | +use Imanghafoori\LaravelMicroscope\CheckNamespaces; |
|
14 | 11 | use Imanghafoori\LaravelMicroscope\Contracts\FileCheckContract; |
15 | 12 | use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
13 | +use Imanghafoori\LaravelMicroscope\FileReaders\Paths; |
|
14 | +use Imanghafoori\LaravelMicroscope\LaravelPaths\MigrationPaths; |
|
15 | +use Imanghafoori\LaravelMicroscope\SpyClasses\RoutePaths; |
|
16 | 16 | use Imanghafoori\LaravelMicroscope\Traits\LogsErrors; |
17 | 17 | use Imanghafoori\LaravelMicroscope\Traits\ScansFiles; |
18 | -use Imanghafoori\LaravelMicroscope\LaravelPaths\MigrationPaths; |
|
18 | +use Symfony\Component\Finder\Finder; |
|
19 | 19 | |
20 | 20 | class CheckPsr4 extends Command implements FileCheckContract |
21 | 21 | { |