Completed
Push — master ( d64292...d64968 )
by Iman
01:27
created
src/Refactors/SyntaxNormalizer.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Analyzers/Refactor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@
 block discarded – undo
58 58
         return $stringOutput;
59 59
     }
60 60
 
61
+    /**
62
+     * @param \Closure $refactor
63
+     */
61 64
     private static function recursiveRefactor($tokens, $refactor)
62 65
     {
63 66
         $i = $changes = 0;
Please login to merge, or discard this patch.
src/Commands/CheckCompact.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,12 +3,12 @@
 block discarded – undo
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\ErrorTypes\CompactCall;
11
+use Imanghafoori\LaravelMicroscope\SpyClasses\RoutePaths;
12 12
 
13 13
 class CheckCompact extends Command
14 14
 {
Please login to merge, or discard this patch.
src/LaravelMicroscopeServiceProvider.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 use Illuminate\Support\Facades\Route;
9 9
 use Illuminate\Support\ServiceProvider;
10 10
 use Imanghafoori\LaravelMicroscope\Commands;
11
+use Imanghafoori\LaravelMicroscope\ErrorReporters\ConsolePrinterInstaller;
11 12
 use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter;
12 13
 use Imanghafoori\LaravelMicroscope\SpyClasses\SpyDispatcher;
13 14
 use Imanghafoori\LaravelMicroscope\SpyClasses\SpyGate;
14 15
 use Imanghafoori\LaravelMicroscope\SpyClasses\SpyRouter;
15
-use Imanghafoori\LaravelMicroscope\ErrorReporters\ConsolePrinterInstaller;
16 16
 
17 17
 class LaravelMicroscopeServiceProvider extends ServiceProvider
18 18
 {
Please login to merge, or discard this patch.
src/Commands/CheckRoutes.php 2 patches
Unused Use Statements   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -3,18 +3,18 @@
 block discarded – undo
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 7
 use Illuminate\Routing\Controller;
10
-use Imanghafoori\LaravelMicroscope\CheckBladeFiles;
11
-use Imanghafoori\LaravelMicroscope\Traits\LogsErrors;
12
-use Imanghafoori\LaravelMicroscope\Analyzers\FilePath;
8
+use Illuminate\Routing\Router;
9
+use Illuminate\Support\Str;
10
+use Imanghafoori\LaravelMicroscope\Analyzers\ClassMethods;
13 11
 use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson;
12
+use Imanghafoori\LaravelMicroscope\Analyzers\FilePath;
13
+use Imanghafoori\LaravelMicroscope\Analyzers\NamespaceCorrector;
14
+use Imanghafoori\LaravelMicroscope\CheckBladeFiles;
14 15
 use Imanghafoori\LaravelMicroscope\Checks\CheckRouteCalls;
15
-use Imanghafoori\LaravelMicroscope\Analyzers\ClassMethods;
16 16
 use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter;
17
-use Imanghafoori\LaravelMicroscope\Analyzers\NamespaceCorrector;
17
+use Imanghafoori\LaravelMicroscope\Traits\LogsErrors;
18 18
 
19 19
 class CheckRoutes extends Command
20 20
 {
Please login to merge, or discard this patch.
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -67,6 +67,9 @@  discard block
 block discarded – undo
67 67
         }
68 68
     }
69 69
 
70
+    /**
71
+     * @param ErrorPrinter $errorPrinter
72
+     */
70 73
     protected function checkClassesForRouteCalls($errorPrinter)
71 74
     {
72 75
         $psr4 = ComposerJson::readKey('autoload.psr-4');
@@ -98,6 +101,10 @@  discard block
 block discarded – undo
98 101
         }
99 102
     }
100 103
 
104
+    /**
105
+     * @param ErrorPrinter $errorPrinter
106
+     * @param \Symfony\Component\Console\Helper\ProgressBar $bar
107
+     */
101 108
     private function checkRouteDefinitions($errorPrinter, $routes, $bar)
102 109
     {
103 110
         foreach ($routes as $route) {
@@ -162,6 +169,9 @@  discard block
 block discarded – undo
162 169
         return $namespace.'\\'.$className;
163 170
     }
164 171
 
172
+    /**
173
+     * @param string $fullNamespace
174
+     */
165 175
     protected function isLaravelController($fullNamespace)
166 176
     {
167 177
         try {
Please login to merge, or discard this patch.