Completed
Pull Request — master (#2637)
by
unknown
02:21
created
src/Controllers/LogController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@  discard block
 block discarded – undo
35 35
 
36 36
         $grid->id('ID')->sortable();
37 37
         $grid->user()->name('User');
38
-        $grid->method()->display(function ($method) {
38
+        $grid->method()->display(function($method) {
39 39
             $color = array_get(OperationLog::$methodColors, $method, 'grey');
40 40
 
41 41
             return "<span class=\"badge bg-$color\">$method</span>";
42 42
         });
43 43
         $grid->path()->label('info');
44 44
         $grid->ip()->label('primary');
45
-        $grid->input()->display(function ($input) {
45
+        $grid->input()->display(function($input) {
46 46
             $input = json_decode($input, true);
47 47
             $input = array_except($input, ['_pjax', '_token', '_method', '_previous_']);
48 48
             if (empty($input)) {
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
 
55 55
         $grid->created_at(trans('admin.created_at'));
56 56
 
57
-        $grid->actions(function (Grid\Displayers\Actions $actions) {
57
+        $grid->actions(function(Grid\Displayers\Actions $actions) {
58 58
             $actions->disableEdit();
59 59
             $actions->disableView();
60 60
         });
61 61
 
62 62
         $grid->disableCreation();
63 63
 
64
-        $grid->filter(function ($filter) {
64
+        $grid->filter(function($filter) {
65 65
             $userModel = config('admin.database.users_model');
66 66
 
67 67
             $filter->equal('user_id', 'User')->select($userModel::all()->pluck('name', 'id'));
Please login to merge, or discard this patch.
src/Admin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -213,10 +213,10 @@
 block discarded – undo
213 213
             'middleware' => config('admin.route.middleware'),
214 214
         ];
215 215
 
216
-        app('router')->group($attributes, function ($router) {
216
+        app('router')->group($attributes, function($router) {
217 217
 
218 218
             /* @var \Illuminate\Routing\Router $router */
219
-            $router->namespace('Encore\Admin\Controllers')->group(function ($router) {
219
+            $router->namespace('Encore\Admin\Controllers')->group(function($router) {
220 220
 
221 221
                 /* @var \Illuminate\Routing\Router $router */
222 222
                 $router->resource('auth/users', 'UserController');
Please login to merge, or discard this patch.
src/Layout/Column.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
 
35 35
         ///// set width.
36 36
         // if null, or $this->width is empty array, set as "md" => "12"
37
-        if(is_null($width) || (is_array($width) && count($width) === 0)){
37
+        if (is_null($width) || (is_array($width) && count($width) === 0)) {
38 38
             $this->width["md"] = 12;
39 39
         }
40 40
         // $this->width is number(old version), set as "md" => $width
41
-        elseif(is_numeric($width)){
41
+        elseif (is_numeric($width)) {
42 42
             $this->width["md"] = $width;
43 43
         }
44
-        else{
44
+        else {
45 45
             $this->width = $width;
46 46
         }
47 47
     }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     protected function startColumn()
113 113
     {
114 114
         // get classname using width array
115
-        $classname = implode(" ", collect($this->width)->map(function($value, $key){
115
+        $classname = implode(" ", collect($this->width)->map(function($value, $key) {
116 116
             return "col-$key-$value";
117 117
         })->toArray());
118 118
         echo "<div class=\"{$classname}\">";
Please login to merge, or discard this patch.