@@ -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,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace BeyondCode\QueryDetector; |
| 4 | 4 | |
| 5 | +use BeyondCode\QueryDetector\Events\QueryDetected; |
|
| 5 | 6 | use DB; |
| 6 | -use Illuminate\Support\Collection; |
|
| 7 | 7 | use Illuminate\Database\Eloquent\Builder; |
| 8 | -use Symfony\Component\HttpFoundation\Response; |
|
| 9 | 8 | use Illuminate\Database\Eloquent\Relations\Relation; |
| 10 | -use BeyondCode\QueryDetector\Events\QueryDetected; |
|
| 9 | +use Illuminate\Support\Collection; |
|
| 10 | +use Symfony\Component\HttpFoundation\Response; |
|
| 11 | 11 | |
| 12 | 12 | class QueryDetector |
| 13 | 13 | { |