Completed
Pull Request — master (#38)
by Lucas
01:19
created
src/Events/QueryDetected.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Outputs/Alert.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/QueryDetector.php 2 patches
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
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,9 +259,9 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * Get the output.
261 261
      *
262
-     * @param  mixed  $request
262
+     * @param  \Illuminate\Http\Request  $request
263 263
      * @param  Response  $response
264
-     * @return mixed
264
+     * @return Response
265 265
      */
266 266
     public function output($request, $response)
267 267
     {
Please login to merge, or discard this patch.