Completed
Pull Request — master (#56)
by
unknown
01:08
created
src/QueryDetector.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -78,6 +78,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Outputs/Json.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.