@@ -64,7 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * Get columns. |
66 | 66 | * |
67 | - * @return array |
|
67 | + * @return string[] |
|
68 | 68 | */ |
69 | 69 | protected function getColumns() |
70 | 70 | { |
@@ -99,6 +99,6 @@ |
||
99 | 99 | */ |
100 | 100 | protected function filename() |
101 | 101 | { |
102 | - return 'activitylog_' . time(); |
|
102 | + return 'activitylog_'.time(); |
|
103 | 103 | } |
104 | 104 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * Display index page and process dataTable ajax request. |
25 | 25 | * |
26 | - * @param \App\DataTables\UsersDataTable $dataTable |
|
26 | + * @param ActivityLogDataTable $dataTable |
|
27 | 27 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
28 | 28 | */ |
29 | 29 | public function index(ActivityLogDataTable $dataTable) |
@@ -2,11 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | -use Validator; |
|
6 | -use Illuminate\Http\Request; |
|
7 | 5 | use App\Http\Controllers\Controller; |
8 | 6 | use App\DataTables\ActivityLogDataTable; |
9 | -use App\User; |
|
10 | 7 | |
11 | 8 | class ActivityLogController extends Controller |
12 | 9 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @var array |
26 | 26 | */ |
27 | - protected static $ignoreChangedAttributes = ['updated_at']; |
|
27 | + protected static $ignoreChangedAttributes = [ 'updated_at' ]; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * The attributes to log in the Activity Log |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @var array |
26 | 26 | */ |
27 | - protected static $ignoreChangedAttributes = ['updated_at']; |
|
27 | + protected static $ignoreChangedAttributes = [ 'updated_at' ]; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * The attributes to log in the Activity Log |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @var array |
26 | 26 | */ |
27 | - protected static $ignoreChangedAttributes = ['updated_at']; |
|
27 | + protected static $ignoreChangedAttributes = [ 'updated_at' ]; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * The attributes to log in the Activity Log |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | return datatables($query) |
19 | 19 | ->addColumn('action', 'device.action') |
20 | - ->blacklist([ 'action']) |
|
20 | + ->blacklist([ 'action' ]) |
|
21 | 21 | ->setRowClass(function($device) { |
22 | 22 | return $device->trashed() ? 'alert-danger' : ""; |
23 | 23 | }); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * |
30 | 30 | * @var array |
31 | 31 | */ |
32 | - protected $hidden = ['token']; |
|
32 | + protected $hidden = [ 'token' ]; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * The attributes that are mass assignable. |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * |
49 | 49 | * @var array |
50 | 50 | */ |
51 | - protected static $ignoreChangedAttributes = ['updated_at']; |
|
51 | + protected static $ignoreChangedAttributes = [ 'updated_at' ]; |
|
52 | 52 | |
53 | 53 | /** |
54 | 54 | * The attributes to log in the Activity Log |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | else |
150 | 150 | $time = new Carbon($value, 'UTC'); |
151 | 151 | |
152 | - $this->attributes['open_time'] = $time; |
|
152 | + $this->attributes[ 'open_time' ] = $time; |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | else |
172 | 172 | $time = new Carbon($value, 'UTC'); |
173 | 173 | |
174 | - $this->attributes['close_time'] = $time; |
|
174 | + $this->attributes[ 'close_time' ] = $time; |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | /** |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * |
39 | 39 | * @var array |
40 | 40 | */ |
41 | - protected static $ignoreChangedAttributes = ['updated_at']; |
|
41 | + protected static $ignoreChangedAttributes = [ 'updated_at' ]; |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * The attributes to log in the Activity Log |