Completed
Push — master ( 7d9761...77615c )
by Tony
02:53
created
app/Api/Controllers/PortController.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,8 @@  discard block
 block discarded – undo
23 23
         $per_page = $request->per_page ?: 25;
24 24
         if ($request->user()->hasGlobalRead()) {
25 25
             $devices = Device::paginate($per_page);
26
-        } else {
26
+        }
27
+        else {
27 28
             $devices = User::find($request->user()->user_id)->devices()->paginate($per_page);
28 29
         }
29 30
         return $devices;
@@ -60,7 +61,8 @@  discard block
 block discarded – undo
60 61
     {
61 62
         if ($request->user()->hasGlobalRead()) {
62 63
             $device = Device::find($id);
63
-        } else {
64
+        }
65
+        else {
64 66
             $user = User::find($request->user()->user_id);
65 67
             $device = $user->devices()->find($id);
66 68
         }
Please login to merge, or discard this patch.
app/DataTables/General/IPv4DataTable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@
 block discarded – undo
40 40
     {
41 41
         return $this->datatables
42 42
             ->eloquent($this->query())
43
-            ->editColumn('hostname', function ($data) {
43
+            ->editColumn('hostname', function($data) {
44 44
                 $hostname = is_null($data->device) ? trans('devices.text.deleted') : $data->device->hostname;
45 45
                 return '<a href="'.url("devices/".$data->device_id).'">'.$hostname.'</a>';
46 46
             })
47
-            ->editColumn('ifName', function ($data) {
47
+            ->editColumn('ifName', function($data) {
48 48
                 $ifName = is_null($data->ifName) ? trans('devices.text.deleted') : $data->ifName;
49 49
                 return '<a href="'.url("devices/".$data->device_id."/ports/".$data->port_id).'">'.$ifName.'</a>';
50 50
             })
Please login to merge, or discard this patch.
app/DataTables/General/IPv6DataTable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@
 block discarded – undo
40 40
     {
41 41
         return $this->datatables
42 42
             ->eloquent($this->query())
43
-            ->editColumn('hostname', function ($data) {
43
+            ->editColumn('hostname', function($data) {
44 44
                 $hostname = is_null($data->device) ? trans('devices.text.deleted') : $data->device->hostname;
45 45
                 return '<a href="'.url("devices/".$data->device_id).'">'.$hostname.'</a>';
46 46
             })
47
-            ->editColumn('ifName', function ($data) {
47
+            ->editColumn('ifName', function($data) {
48 48
                 $ifName = is_null($data->ifName) ? trans('devices.text.deleted') : $data->ifName;
49 49
                 return '<a href="'.url("devices/".$data->device_id."/ports/".$data->port_id).'">'.$ifName.'</a>';
50 50
             })
Please login to merge, or discard this patch.