Completed
Push — master ( ef124a...c696f3 )
by Iman
01:33
created
src/Commands/PrettyPrintListeners.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@  discard block
 block discarded – undo
56 56
         }
57 57
     }
58 58
 
59
+    /**
60
+     * @param string $value
61
+     */
59 62
     private function deduceRoute($value)
60 63
     {
61 64
         if (Str::containsAll($value, ['@', '\\'])) {
@@ -79,6 +82,9 @@  discard block
 block discarded – undo
79 82
         }
80 83
     }
81 84
 
85
+    /**
86
+     * @param string $action
87
+     */
82 88
     private function getMovableRoute($r, $methods, $action, $middlewares)
83 89
     {
84 90
         $nameSection = ($r->getName() ? ("->name('".$r->getName()."')") : '');
@@ -109,6 +115,9 @@  discard block
 block discarded – undo
109 115
         return $middlewares;
110 116
     }
111 117
 
118
+    /**
119
+     * @param Exception $e
120
+     */
112 121
     private function handleRouteProblem($e)
113 122
     {
114 123
         $this->info('The route has some problem.');
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Imanghafoori\LaravelMicroscope\Commands;
4 4
 
5 5
 use Exception;
6
-use Illuminate\Support\Str;
7 6
 use Illuminate\Console\Command;
7
+use Illuminate\Support\Str;
8 8
 
9 9
 class PrettyPrintListeners extends Command
10 10
 {
Please login to merge, or discard this patch.
src/SpyClasses/SpyDispatcher.php 2 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@  discard block
 block discarded – undo
62 62
         return class_exists($eventName, false) ? $this->addOriginInterfaceListeners($eventName, $listeners) : $listeners;
63 63
     }
64 64
 
65
+    /**
66
+     * @param string $string
67
+     */
65 68
     private function error($string)
66 69
     {
67 70
         app(ErrorPrinter::class)->pended[] = $string;
@@ -96,6 +99,9 @@  discard block
 block discarded – undo
96 99
         }
97 100
     }
98 101
 
102
+    /**
103
+     * @return string
104
+     */
99 105
     private function stringify($event)
100 106
     {
101 107
         return is_object($event) ? get_class($event) : $event;
@@ -117,6 +123,9 @@  discard block
 block discarded – undo
117 123
         return 'The method of '.$at.' is not callable as an event listener for "'.$e.'" event';
118 124
     }
119 125
 
126
+    /**
127
+     * @return string
128
+     */
120 129
     protected function getTypeHintedClass($listenerObj, $methodName)
121 130
     {
122 131
         try {
@@ -142,6 +151,9 @@  discard block
 block discarded – undo
142 151
         return $listeners;
143 152
     }
144 153
 
154
+    /**
155
+     * @param \Closure $listener
156
+     */
145 157
     private function stringifyClosure($listener)
146 158
     {
147 159
         try {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Imanghafoori\LaravelMicroscope\SpyClasses;
4 4
 
5
-use ReflectionFunction;
6
-use ReflectionException;
7
-use Illuminate\Support\Str;
8 5
 use Illuminate\Events\Dispatcher;
6
+use Illuminate\Support\Str;
9 7
 use Imanghafoori\LaravelMicroscope\Analyzers\FilePath;
10 8
 use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter;
9
+use ReflectionException;
10
+use ReflectionFunction;
11 11
 
12 12
 class SpyDispatcher extends Dispatcher
13 13
 {
Please login to merge, or discard this patch.