Completed
Pull Request — master (#5493)
by
unknown
29s
created
src/Grid/Displayers/Badge.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
             $this->value = $this->value->toArray();
14 14
         }
15 15
 
16
-        return collect((array) $this->value)->map(function ($name) use ($style) {
16
+        return collect((array) $this->value)->map(function($name) use ($style) {
17 17
             if (is_array($style)) {
18 18
                 $style = Arr::get($style, $this->getColumn()->getOriginal(), 'red');
19 19
             }
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([self::class, 'check'], $permission);
27 27
             });
28 28
 
Please login to merge, or discard this patch.
src/Grid/Column/Help.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             'title'     => $this->message,
38 38
         ];
39 39
 
40
-        $data = collect($data)->map(function ($val, $key) {
40
+        $data = collect($data)->map(function($val, $key) {
41 41
             return "data-{$key}=\"{$val}\"";
42 42
         })->implode(' ');
43 43
 
Please login to merge, or discard this patch.
src/Grid/Column/CheckFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     {
78 78
         $value = $this->getFilterValue([]);
79 79
 
80
-        $lists = collect($this->options)->map(function ($label, $key) use ($value) {
80
+        $lists = collect($this->options)->map(function($label, $key) use ($value) {
81 81
             $checked = in_array($key, $value) ? 'checked' : '';
82 82
 
83 83
             return <<<HTML
Please login to merge, or discard this patch.
src/Grid/Column/HasHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
      */
116 116
     public function renderHeader()
117 117
     {
118
-        return collect($this->headers)->map(function ($item) {
118
+        return collect($this->headers)->map(function($item) {
119 119
             if ($item instanceof Renderable) {
120 120
                 return $item->render();
121 121
             }
Please login to merge, or discard this patch.
src/Grid/Displayers/Downloadable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
             $this->value = $this->value->toArray();
14 14
         }
15 15
 
16
-        return collect((array) $this->value)->filter()->map(function ($value) use ($server) {
16
+        return collect((array) $this->value)->filter()->map(function($value) use ($server) {
17 17
             if (empty($value)) {
18 18
                 return '';
19 19
             }
Please login to merge, or discard this patch.
src/Form/Field/ImageField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
             
170 170
             $action = $size[2] ?? 'resize';
171 171
             // Resize image with aspect ratio
172
-            $image->$action($size[0], $size[1], function (Constraint $constraint) {
172
+            $image->$action($size[0], $size[1], function(Constraint $constraint) {
173 173
                 $constraint->aspectRatio();
174 174
             })->resizeCanvas($size[0], $size[1], 'center', false, '#ffffff');
175 175
 
Please login to merge, or discard this patch.
src/Grid/Tools/TotalRow.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
      */
88 88
     public function render()
89 89
     {
90
-        $columns = $this->getVisibleColumns()->map(function (Column $column) {
90
+        $columns = $this->getVisibleColumns()->map(function(Column $column) {
91 91
             $name = $column->getName();
92 92
 
93 93
             $total = '';
Please login to merge, or discard this patch.
src/Grid/Concerns/HasActions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      */
89 89
     public function batchActions(Closure $closure)
90 90
     {
91
-        $this->tools(function (Grid\Tools $tools) use ($closure) {
91
+        $this->tools(function(Grid\Tools $tools) use ($closure) {
92 92
             $tools->batch($closure);
93 93
         });
94 94
 
Please login to merge, or discard this patch.