Completed
Pull Request — master (#68)
by Brandon
09:40
created
app/DataTables/ActivityLogDataTable.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     /**
65 65
      * Get columns.
66 66
      *
67
-     * @return array
67
+     * @return string[]
68 68
      */
69 69
     protected function getColumns()
70 70
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,6 +99,6 @@
 block discarded – undo
99 99
      */
100 100
     protected function filename()
101 101
     {
102
-        return 'activitylog_' . time();
102
+        return 'activitylog_'.time();
103 103
     }
104 104
 }
Please login to merge, or discard this patch.
app/Http/Controllers/ActivityLogController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
app/Site.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Location.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Deviceimage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/DataTables/DevicesDataTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
             });
Please login to merge, or discard this patch.
app/Device.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
app/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.