Completed
Push — master ( cce510...3af3d9 )
by Iman
01:26
created
src/Checks/RoutelessActions.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@  discard block
 block discarded – undo
10 10
 
11 11
 class RoutelessActions
12 12
 {
13
+    /**
14
+     * @param \Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter $errorPrinter
15
+     */
13 16
     public function check($errorPrinter)
14 17
     {
15 18
         $psr4 = ComposerJson::readKey('autoload.psr-4');
@@ -99,6 +102,9 @@  discard block
 block discarded – undo
99 102
         return $routelessActions;
100 103
     }
101 104
 
105
+    /**
106
+     * @param string $fullNamespace
107
+     */
102 108
     private function checkControllerActionsForRoutes($errorPrinter, $fullNamespace, $tokens, $absFilePath)
103 109
     {
104 110
         if ($this->isLaravelController($fullNamespace)) {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace Imanghafoori\LaravelMicroscope\Checks;
4 4
 
5 5
 use Illuminate\Routing\Controller;
6
-use Imanghafoori\LaravelMicroscope\Analyzers\FilePath;
7
-use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson;
8 6
 use Imanghafoori\LaravelMicroscope\Analyzers\ClassMethods;
7
+use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson;
8
+use Imanghafoori\LaravelMicroscope\Analyzers\FilePath;
9 9
 use Imanghafoori\LaravelMicroscope\Analyzers\NamespaceCorrector;
10 10
 
11 11
 class RoutelessActions
Please login to merge, or discard this patch.
src/Commands/CheckRoutes.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -67,6 +67,9 @@
 block discarded – undo
67 67
         }
68 68
     }
69 69
 
70
+    /**
71
+     * @param ErrorPrinter $errorPrinter
72
+     */
70 73
     private function checkRouteDefinitions($errorPrinter, $routes)
71 74
     {
72 75
         foreach ($routes as $route) {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,19 +3,14 @@
 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
-use Illuminate\Routing\Controller;
7
+use Illuminate\Routing\Router;
8
+use Illuminate\Support\Str;
10 9
 use Imanghafoori\LaravelMicroscope\CheckBladeFiles;
11
-use Imanghafoori\LaravelMicroscope\Traits\LogsErrors;
12
-use Imanghafoori\LaravelMicroscope\Analyzers\FilePath;
13
-use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson;
14 10
 use Imanghafoori\LaravelMicroscope\Checks\CheckRouteCalls;
15
-use Imanghafoori\LaravelMicroscope\Analyzers\ClassMethods;
16 11
 use Imanghafoori\LaravelMicroscope\Checks\RoutelessActions;
17 12
 use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter;
18
-use Imanghafoori\LaravelMicroscope\Analyzers\NamespaceCorrector;
13
+use Imanghafoori\LaravelMicroscope\Traits\LogsErrors;
19 14
 
20 15
 class CheckRoutes extends Command
21 16
 {
Please login to merge, or discard this patch.