Completed
Pull Request — master (#26)
by
unknown
02:01
created
app/Http/Controllers/DeviceController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,14 +76,14 @@
 block discarded – undo
76 76
                                         'id',
77 77
                                         'name',
78 78
                                     ])
79
-                                    ->orderByRaw(DB::raw("(id = " . $location->site_id . ") DESC"))
79
+                                    ->orderByRaw(DB::raw("(id = ".$location->site_id.") DESC"))
80 80
                                     ->get();
81 81
             $locations = Location::query()->select([
82 82
                                                 'id',
83 83
                                                 'name',
84 84
                                             ])
85 85
                                             ->where('site_id', '=', $location->site_id)
86
-                                            ->orderByRaw(DB::raw("(id = " . $device->location_id . ") DESC"))
86
+                                            ->orderByRaw(DB::raw("(id = ".$device->location_id.") DESC"))
87 87
                                             ->get();
88 88
         }
89 89
         else
Please login to merge, or discard this patch.