Completed
Push — master ( ffe767...90fa06 )
by Brandon
02:24
created
app/Http/Controllers/DeviceController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
app/DataTables/DevicesDataTable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
94 94
      */
95 95
     protected function filename()
96 96
     {
97
-        return 'devices_' . time();
97
+        return 'devices_'.time();
98 98
     }
99 99
 }
Please login to merge, or discard this patch.