@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace BeyondCode\QueryDetector\Events; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Collection; |
|
| 6 | 5 | use Illuminate\Queue\SerializesModels; |
| 6 | +use Illuminate\Support\Collection; |
|
| 7 | 7 | |
| 8 | 8 | class QueryDetected |
| 9 | 9 | { |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * Generate the output. |
| 22 | 22 | * |
| 23 | 23 | * @param \Illuminate\Support\Collection $detectedQueries |
| 24 | - * @param \Symfony\Component\HttpFoundation\Response|null $response |
|
| 24 | + * @param Response $response |
|
| 25 | 25 | * @return void |
| 26 | 26 | */ |
| 27 | 27 | public function output(Collection $detectedQueries, Response $response) |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * Find the source. |
| 120 | 120 | * |
| 121 | - * @param array $stack |
|
| 121 | + * @param Collection $stack |
|
| 122 | 122 | * @return array |
| 123 | 123 | */ |
| 124 | 124 | protected function findSource($stack) |
@@ -259,8 +259,8 @@ discard block |
||
| 259 | 259 | /** |
| 260 | 260 | * Get the output. |
| 261 | 261 | * |
| 262 | - * @param $request * @param Response $response |
|
| 263 | - * @return mixed |
|
| 262 | + * @param \Illuminate\Http\Request $request * @param Response $response |
|
| 263 | + * @return Response |
|
| 264 | 264 | */ |
| 265 | 265 | public function output($request, $response) |
| 266 | 266 | { |
@@ -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 | -use BeyondCode\QueryDetector\Events\QueryDetected; |
|
| 10 | 8 | use Illuminate\Database\Eloquent\Relations\Relation; |
| 9 | +use Illuminate\Support\Collection; |
|
| 10 | +use Symfony\Component\HttpFoundation\Response; |
|
| 11 | 11 | |
| 12 | 12 | class QueryDetector |
| 13 | 13 | { |