@@ -78,6 +78,9 @@ discard block |
||
78 | 78 | } |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param Collection $stack |
|
83 | + */ |
|
81 | 84 | protected function findSource($stack) |
82 | 85 | { |
83 | 86 | $sources = []; |
@@ -179,6 +182,9 @@ discard block |
||
179 | 182 | } |
180 | 183 | } |
181 | 184 | |
185 | + /** |
|
186 | + * @param \Illuminate\Http\Response $response |
|
187 | + */ |
|
182 | 188 | public function output($request, $response) |
183 | 189 | { |
184 | 190 | if ($this->getDetectedQueries()->isNotEmpty()) { |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace BeyondCode\QueryDetector; |
4 | 4 | |
5 | +use BeyondCode\QueryDetector\Events\QueryDetected; |
|
5 | 6 | use DB; |
7 | +use Illuminate\Database\Eloquent\Builder; |
|
8 | +use Illuminate\Database\Eloquent\Relations\Relation; |
|
6 | 9 | use Illuminate\Support\Arr; |
7 | 10 | use Illuminate\Support\Collection; |
8 | -use Illuminate\Database\Eloquent\Builder; |
|
9 | 11 | use Symfony\Component\HttpFoundation\Response; |
10 | -use Illuminate\Database\Eloquent\Relations\Relation; |
|
11 | -use BeyondCode\QueryDetector\Events\QueryDetected; |
|
12 | 12 | |
13 | 13 | class QueryDetector |
14 | 14 | { |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace BeyondCode\QueryDetector\Outputs; |
3 | 3 | |
4 | +use Illuminate\Http\JsonResponse; |
|
4 | 5 | use Illuminate\Support\Collection; |
5 | 6 | use Symfony\Component\HttpFoundation\Response; |
6 | -use Illuminate\Http\JsonResponse; |
|
7 | 7 | |
8 | 8 | class Json implements Output |
9 | 9 | { |