Passed
Push — master ( 7f58b2...c3001e )
by Dan Michael O.
02:26
created
app/Http/Controllers/PublicApiController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $query = Thing::with('settings');
92 92
 
93 93
         if ($request->items && strtolower($request->items) !== 'false') {
94
-            $query->with(['items' => function ($query) use ($request) {
94
+            $query->with(['items' => function($query) use ($request) {
95 95
                 if (isset($request->library)) {
96 96
                     $query->where('library_id', '=', $request->library);
97 97
                 }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         }
101 101
 
102 102
         if (isset($request->library)) {
103
-            $query->whereHas('items', function ($itemQuery) use ($request) {
103
+            $query->whereHas('items', function($itemQuery) use ($request) {
104 104
                 $itemQuery->where('library_id', '=', $request->library);
105 105
             });
106 106
         }
Please login to merge, or discard this patch.