@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | { |
55 | 55 | $device = Device::findOrFail($id); |
56 | 56 | |
57 | - return view('device.show', ['device' => $device]); |
|
57 | + return view('device.show', [ 'device' => $device ]); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | else |
74 | 74 | $site = null; |
75 | 75 | |
76 | - return view('device.edit', ['device' => $device, 'location' => $location, 'site' => $site]); |
|
76 | + return view('device.edit', [ 'device' => $device, 'location' => $location, 'site' => $site ]); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | { |
184 | 184 | $device = Device::findOrFail($id); |
185 | 185 | |
186 | - return view('device.remove', ['device' => $device]); |
|
186 | + return view('device.remove', [ 'device' => $device ]); |
|
187 | 187 | } |
188 | 188 | |
189 | 189 | /** |
@@ -17,8 +17,8 @@ discard block |
||
17 | 17 | return $this->datatables |
18 | 18 | ->eloquent($this->query()) |
19 | 19 | ->addColumn('action', 'device.action') |
20 | - ->blacklist(['action']) |
|
21 | - ->setRowClass(function ($device) { |
|
20 | + ->blacklist([ 'action' ]) |
|
21 | + ->setRowClass(function($device) { |
|
22 | 22 | return $device->trashed() ? 'alert-danger' : ""; |
23 | 23 | }); |
24 | 24 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | //->addAction(['width' => '160px']) |
58 | 58 | ->parameters([ |
59 | 59 | 'dom' => 'Bfrtip', |
60 | - 'order' => [[0, 'asc']], |
|
60 | + 'order' => [ [ 0, 'asc' ] ], |
|
61 | 61 | 'buttons' => [ |
62 | 62 | 'export', |
63 | 63 | 'print', |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | 'name', |
84 | 84 | 'location', |
85 | 85 | 'site', |
86 | - ['name' => 'action', 'data' => 'action', 'title' => 'Actions', 'render' => null, 'searchable' => false, 'orderable' => false, 'exportable' => false, 'printable' => true, 'footer' => ''], |
|
86 | + [ 'name' => 'action', 'data' => 'action', 'title' => 'Actions', 'render' => null, 'searchable' => false, 'orderable' => false, 'exportable' => false, 'printable' => true, 'footer' => '' ], |
|
87 | 87 | ]; |
88 | 88 | } |
89 | 89 | |
@@ -94,6 +94,6 @@ discard block |
||
94 | 94 | */ |
95 | 95 | protected function filename() |
96 | 96 | { |
97 | - return 'devices_' . time(); |
|
97 | + return 'devices_'.time(); |
|
98 | 98 | } |
99 | 99 | } |