Completed
Pull Request — master (#2684)
by
unknown
03:55 queued 01:21
created
src/Controllers/LogController.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,34 +36,33 @@
 block discarded – undo
36 36
 
37 37
         $grid->id('ID')->sortable();
38 38
         $grid->user()->name('User');
39
-        $grid->method()->display(function ($method) {
39
+        $grid->method()->display(function($method) {
40 40
             $color = array_get(OperationLog::$methodColors, $method, 'grey');
41 41
 
42 42
             return "<span class=\"badge bg-$color\">$method</span>";
43 43
         });
44 44
         $grid->path()->label('info');
45 45
         $grid->ip()->label('primary');
46
-        $grid->input()->limit(20)->modal(function ($model) {
46
+        $grid->input()->limit(20)->modal(function($model) {
47 47
             $input = json_decode($model->input, true);
48 48
             $input = array_except($input, ['_pjax', '_token', '_method', '_previous_']);
49 49
 
50 50
             $input = empty($input) ?
51
-                '<code>{}</code>' :
52
-                '<pre>'.json_encode($input, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE).'</pre>';
51
+                '<code>{}</code>' : '<pre>'.json_encode($input, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE).'</pre>';
53 52
 
54 53
             return new Box(trans('admin.description'), $input);
55 54
         });
56 55
 
57 56
         $grid->created_at(trans('admin.created_at'));
58 57
 
59
-        $grid->actions(function (Grid\Displayers\Actions $actions) {
58
+        $grid->actions(function(Grid\Displayers\Actions $actions) {
60 59
             $actions->disableEdit();
61 60
             $actions->disableView();
62 61
         });
63 62
 
64 63
         $grid->disableCreation();
65 64
 
66
-        $grid->filter(function ($filter) {
65
+        $grid->filter(function($filter) {
67 66
             $userModel = config('admin.database.users_model');
68 67
 
69 68
             $filter->equal('user_id', 'User')->select($userModel::all()->pluck('name', 'id'));
Please login to merge, or discard this patch.