Completed
Pull Request — master (#1677)
by Sun
02:38
created
src/Grid/Displayers/Button.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function display($style)
8 8
     {
9
-        $style = collect((array) $style)->map(function ($style) {
9
+        $style = collect((array) $style)->map(function($style) {
10 10
             return 'btn-'.$style;
11 11
         })->implode(' ');
12 12
 
Please login to merge, or discard this patch.
src/Grid/Displayers/ProgressBar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function display($style = 'primary', $size = 'sm', $max = 100)
8 8
     {
9
-        $style = collect((array) $style)->map(function ($style) {
9
+        $style = collect((array) $style)->map(function($style) {
10 10
             return 'progress-bar-'.$style;
11 11
         })->implode(' ');
12 12
 
Please login to merge, or discard this patch.
src/Tree/Tools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      */
56 56
     public function render()
57 57
     {
58
-        return $this->tools->map(function ($tool) {
58
+        return $this->tools->map(function($tool) {
59 59
             if ($tool instanceof Renderable) {
60 60
                 return $tool->render();
61 61
             }
Please login to merge, or discard this patch.
src/Auth/Permission.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         }
23 23
 
24 24
         if (is_array($permission)) {
25
-            collect($permission)->each(function ($permission) {
25
+            collect($permission)->each(function($permission) {
26 26
                 call_user_func([Permission::class, 'check'], $permission);
27 27
             });
28 28
 
Please login to merge, or discard this patch.
src/Form/NestedForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
         if (array_key_exists($key, $this->original)) {
174 174
             $values = $this->original[$key];
175 175
         }
176
-        $this->fields->each(function (Field $field) use ($values) {
176
+        $this->fields->each(function(Field $field) use ($values) {
177 177
             $field->setOriginal($values);
178 178
         });
179 179
     }
Please login to merge, or discard this patch.
src/Form/Tools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
             $this->add($this->backButton());
134 134
         }
135 135
 
136
-        return $this->tools->map(function ($tool) {
136
+        return $this->tools->map(function($tool) {
137 137
             if ($tool instanceof Renderable) {
138 138
                 return $tool->render();
139 139
             }
Please login to merge, or discard this patch.
src/Form/EmbeddedForm.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      */
162 162
     protected function prepareValue($key, $record)
163 163
     {
164
-        $field = $this->fields->first(function (Field $field) use ($key) {
164
+        $field = $this->fields->first(function(Field $field) use ($key) {
165 165
             return in_array($key, (array) $field->column());
166 166
         });
167 167
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         if (array_key_exists($key, $this->original)) {
185 185
             $values = $this->original[$key];
186 186
 
187
-            $this->fields->each(function (Field $field) use ($values) {
187
+            $this->fields->each(function(Field $field) use ($values) {
188 188
                 $field->setOriginal($values);
189 189
             });
190 190
         }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      */
200 200
     public function fill(array $data)
201 201
     {
202
-        $this->fields->each(function (Field $field) use ($data) {
202
+        $this->fields->each(function(Field $field) use ($data) {
203 203
             $field->fill($data);
204 204
         });
205 205
 
Please login to merge, or discard this patch.
src/Form/Tab.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     public function getTabs()
83 83
     {
84 84
         // If there is no active tab, then active the first.
85
-        if ($this->tabs->filter(function ($tab) {
85
+        if ($this->tabs->filter(function($tab) {
86 86
             return $tab['active'];
87 87
         })->isEmpty()) {
88 88
             $first = $this->tabs->first();
Please login to merge, or discard this patch.
src/Controllers/RoleController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function index()
23 23
     {
24
-        return Admin::content(function (Content $content) {
24
+        return Admin::content(function(Content $content) {
25 25
             $content->header(trans('admin.roles'));
26 26
             $content->description(trans('admin.list'));
27 27
             $content->body($this->grid()->render());
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function edit($id)
39 39
     {
40
-        return Admin::content(function (Content $content) use ($id) {
40
+        return Admin::content(function(Content $content) use ($id) {
41 41
             $content->header(trans('admin.roles'));
42 42
             $content->description(trans('admin.edit'));
43 43
             $content->body($this->form()->edit($id));
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function create()
53 53
     {
54
-        return Admin::content(function (Content $content) {
54
+        return Admin::content(function(Content $content) {
55 55
             $content->header(trans('admin.roles'));
56 56
             $content->description(trans('admin.create'));
57 57
             $content->body($this->form());
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function grid()
67 67
     {
68
-        return Admin::grid(Role::class, function (Grid $grid) {
68
+        return Admin::grid(Role::class, function(Grid $grid) {
69 69
             $grid->id('ID')->sortable();
70 70
             $grid->slug(trans('admin.slug'));
71 71
             $grid->name(trans('admin.name'));
@@ -75,14 +75,14 @@  discard block
 block discarded – undo
75 75
             $grid->created_at(trans('admin.created_at'));
76 76
             $grid->updated_at(trans('admin.updated_at'));
77 77
 
78
-            $grid->actions(function (Grid\Displayers\Actions $actions) {
78
+            $grid->actions(function(Grid\Displayers\Actions $actions) {
79 79
                 if ($actions->row->slug == 'administrator') {
80 80
                     $actions->disableDelete();
81 81
                 }
82 82
             });
83 83
 
84
-            $grid->tools(function (Grid\Tools $tools) {
85
-                $tools->batch(function (Grid\Tools\BatchActions $actions) {
84
+            $grid->tools(function(Grid\Tools $tools) {
85
+                $tools->batch(function(Grid\Tools\BatchActions $actions) {
86 86
                     $actions->disableDelete();
87 87
                 });
88 88
             });
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function form()
98 98
     {
99
-        return Admin::form(Role::class, function (Form $form) {
99
+        return Admin::form(Role::class, function(Form $form) {
100 100
             $form->display('id', 'ID');
101 101
 
102 102
             $form->text('slug', trans('admin.slug'))->rules('required');
Please login to merge, or discard this patch.