@@ -82,6 +82,9 @@ discard block |
||
82 | 82 | } |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param Collection $stack |
|
87 | + */ |
|
85 | 88 | protected function findSource($stack) |
86 | 89 | { |
87 | 90 | $sources = []; |
@@ -176,6 +179,9 @@ discard block |
||
176 | 179 | $outputType->output($this->getDetectedQueries(), $response); |
177 | 180 | } |
178 | 181 | |
182 | + /** |
|
183 | + * @param \Illuminate\Http\Response $response |
|
184 | + */ |
|
179 | 185 | public function output($request, $response) |
180 | 186 | { |
181 | 187 | if ($this->getDetectedQueries()->isNotEmpty()) { |
@@ -3,10 +3,10 @@ |
||
3 | 3 | namespace BeyondCode\QueryDetector; |
4 | 4 | |
5 | 5 | use DB; |
6 | -use Illuminate\Support\Collection; |
|
7 | 6 | use Illuminate\Database\Eloquent\Builder; |
8 | -use Symfony\Component\HttpFoundation\Response; |
|
9 | 7 | use Illuminate\Database\Eloquent\Relations\Relation; |
8 | +use Illuminate\Support\Collection; |
|
9 | +use Symfony\Component\HttpFoundation\Response; |
|
10 | 10 | |
11 | 11 | class QueryDetector |
12 | 12 | { |