Completed
Pull Request — master (#94)
by amir
01:29
created
src/Commands/PrettyPrintRoutes.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@  discard block
 block discarded – undo
35 35
         }
36 36
     }
37 37
 
38
+    /**
39
+     * @param \Illuminate\Routing\Route $route
40
+     */
38 41
     private function writeIt($route, $filename)
39 42
     {
40 43
         try {
@@ -57,6 +60,9 @@  discard block
 block discarded – undo
57 60
         }
58 61
     }
59 62
 
63
+    /**
64
+     * @param string $value
65
+     */
60 66
     private function deduceRoute($value)
61 67
     {
62 68
         if (Str::containsAll($value, ['@', '\\'])) {
@@ -68,6 +74,9 @@  discard block
 block discarded – undo
68 74
         return $route;
69 75
     }
70 76
 
77
+    /**
78
+     * @param \Illuminate\Routing\Route $route
79
+     */
71 80
     private function printIt($route)
72 81
     {
73 82
         try {
@@ -80,6 +89,10 @@  discard block
 block discarded – undo
80 89
         }
81 90
     }
82 91
 
92
+    /**
93
+     * @param string $action
94
+     * @param string $middlewareSection
95
+     */
83 96
     private function getMovableRoute($route, $methods, $action, $middlewareSection)
84 97
     {
85 98
         if ($action == '\Illuminate\Routing\ViewController::class') {
@@ -117,6 +130,9 @@  discard block
 block discarded – undo
117 130
         return $middlewares ? '->middleware(['.$middlewares.'])' : '';
118 131
     }
119 132
 
133
+    /**
134
+     * @param Exception $e
135
+     */
120 136
     private function handleRouteProblem($e)
121 137
     {
122 138
         $this->info('The route has some problem.');
@@ -124,6 +140,9 @@  discard block
 block discarded – undo
124 140
         $this->info($e->getFile());
125 141
     }
126 142
 
143
+    /**
144
+     * @param string $middlewares
145
+     */
127 146
     private function prettyPrintInConsole($route, $middlewares)
128 147
     {
129 148
         $this->getOutput()->writeln('---------------------------------------------------');
Please login to merge, or discard this patch.
src/ErrorReporters/ConsolePrinterInstaller.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 use Illuminate\Support\Str;
7 7
 use Imanghafoori\LaravelMicroscope\ErrorTypes\BladeFile;
8 8
 use Imanghafoori\LaravelMicroscope\ErrorTypes\CompactCall;
9
-use Imanghafoori\LaravelMicroscope\ErrorTypes\ddFound;
10 9
 use Imanghafoori\LaravelMicroscope\ErrorTypes\EnvFound;
11 10
 use Imanghafoori\LaravelMicroscope\ErrorTypes\RouteDefinitionConflict;
11
+use Imanghafoori\LaravelMicroscope\ErrorTypes\ddFound;
12 12
 
13 13
 class ConsolePrinterInstaller
14 14
 {
Please login to merge, or discard this patch.
src/CheckNamespaces.php 1 patch
Doc Comments   +14 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * Get all of the listeners and their corresponding events.
21 21
      *
22
-     * @param  iterable  $paths
22
+     * @param  \Symfony\Component\Finder\Finder  $paths
23 23
      * @param  $composerPath
24 24
      * @param  $composerNamespace
25
-     * @param  $command
25
+     * @param  Commands\CheckPsr4 $command
26 26
      *
27 27
      * @return void
28 28
      */
@@ -79,6 +79,9 @@  discard block
 block discarded – undo
79 79
         app(ErrorPrinter::class)->errorsList['total'] = 0;
80 80
     }
81 81
 
82
+    /**
83
+     * @param string $relativePath
84
+     */
82 85
     private static function warn($currentNamespace, $relativePath)
83 86
     {
84 87
         /**
@@ -106,6 +109,9 @@  discard block
 block discarded – undo
106 109
         return Str::startsWith($buffer, '<?php');
107 110
     }
108 111
 
112
+    /**
113
+     * @param string $correctNamespace
114
+     */
109 115
     protected static function doNamespaceCorrection($absFilePath, $currentNamespace, $correctNamespace)
110 116
     {
111 117
         event('laravel_microscope.namespace_fixing', get_defined_vars());
@@ -113,6 +119,9 @@  discard block
 block discarded – undo
113 119
         event('laravel_microscope.namespace_fixed', get_defined_vars());
114 120
     }
115 121
 
122
+    /**
123
+     * @param string $correctNamespace
124
+     */
116 125
     private static function ask($command, $correctNamespace)
117 126
     {
118 127
         if ($command->option('force')) {
@@ -121,6 +130,9 @@  discard block
 block discarded – undo
121 130
         return $command->getOutput()->confirm('Do you want to change it to: '.$correctNamespace, true);
122 131
     }
123 132
 
133
+    /**
134
+     * @param string $correctNamespace
135
+     */
124 136
     private static function changedNamespaces($class, $currentNamespace, $correctNamespace)
125 137
     {
126 138
         $_currentClass = $currentNamespace.'\\'.$class;
Please login to merge, or discard this patch.