Completed
Push — develop ( 49f866...6f4c5d )
by Neil
03:50
created
app/Api/Controllers/DeviceController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         }
68 68
         else {
69 69
             $user = User::find($request->user()->user_id);
70
-            $device =  $user->devices()->find($id);
70
+            $device = $user->devices()->find($id);
71 71
         }
72 72
         // morph the data as required
73 73
         if ($request->query('displayFormat') == 'link') {
Please login to merge, or discard this patch.
app/Api/Controllers/PortController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function index(Request $request)
21 21
     {
22 22
         if ($request->user()->hasGlobalRead()) {
23
-            return Port::with(array('device'=>function($query){
23
+            return Port::with(array('device'=>function($query) {
24 24
                 $query->select('device_id', 'hostname');
25 25
                 }))->get();
26 26
         }
Please login to merge, or discard this patch.