@@ -63,6 +63,9 @@ discard block |
||
63 | 63 | return class_exists($eventName, false) ? $this->addOriginInterfaceListeners($eventName, $listeners) : $listeners; |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $string |
|
68 | + */ |
|
66 | 69 | private function error($string) |
67 | 70 | { |
68 | 71 | app(ErrorPrinter::class)->pended[] = $string; |
@@ -97,6 +100,9 @@ discard block |
||
97 | 100 | } |
98 | 101 | } |
99 | 102 | |
103 | + /** |
|
104 | + * @return string |
|
105 | + */ |
|
100 | 106 | private function stringify($event) |
101 | 107 | { |
102 | 108 | return is_object($event) ? get_class($event) : $event; |
@@ -118,6 +124,9 @@ discard block |
||
118 | 124 | return 'The method of '.$at.' is not callable as an event listener for "'.$e.'" event'; |
119 | 125 | } |
120 | 126 | |
127 | + /** |
|
128 | + * @return string |
|
129 | + */ |
|
121 | 130 | protected function getTypeHintedClass($listenerObj, $methodName) |
122 | 131 | { |
123 | 132 | try { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Imanghafoori\LaravelMicroscope\SpyClasses; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | 5 | use Illuminate\Events\Dispatcher; |
6 | +use Illuminate\Support\Str; |
|
7 | 7 | use Imanghafoori\LaravelMicroscope\Analyzers\FilePath; |
8 | 8 | use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
9 | 9 |