Completed
Pull Request — master (#5435)
by
unknown
45s
created
src/Form/Field/MultipleFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
         // for create or update
156 156
         if ($this->pathColumn) {
157
-            $targets = array_map(function ($target) {
157
+            $targets = array_map(function($target) {
158 158
                 return [$this->pathColumn => $target];
159 159
             }, $targets);
160 160
         }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     {
186 186
         $this->name = $this->getStoreName($file);
187 187
 
188
-        return tap($this->upload($file), function () {
188
+        return tap($this->upload($file), function() {
189 189
             $this->name = null;
190 190
         });
191 191
     }
Please login to merge, or discard this patch.
src/Grid/Actions/Delete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         ];
30 30
 
31 31
         try {
32
-            DB::transaction(function () use ($model) {
32
+            DB::transaction(function() use ($model) {
33 33
                 $model->delete();
34 34
             });
35 35
         } catch (\Exception $exception) {
Please login to merge, or discard this patch.
src/Show.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
         $this->overwriteExistingField($name);
228 228
 
229
-        return tap($field, function ($field) {
229
+        return tap($field, function($field) {
230 230
             $this->fields->push($field);
231 231
         });
232 232
     }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 
249 249
         $this->overwriteExistingRelation($name);
250 250
 
251
-        return tap($relation, function ($relation) {
251
+        return tap($relation, function($relation) {
252 252
             $this->relations->push($relation);
253 253
         });
254 254
     }
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
         }
266 266
 
267 267
         $this->fields = $this->fields->filter(
268
-            function (Field $field) use ($name) {
268
+            function(Field $field) use ($name) {
269 269
                 return $field->getName() != $name;
270 270
             }
271 271
         );
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         }
284 284
 
285 285
         $this->relations = $this->relations->filter(
286
-            function (Relation $relation) use ($name) {
286
+            function(Relation $relation) use ($name) {
287 287
                 return $relation->getName() != $name;
288 288
             }
289 289
         );
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
      */
341 341
     public function setWidth($fieldWidth = 8, $labelWidth = 2)
342 342
     {
343
-        collect($this->fields)->each(function ($field) use ($fieldWidth, $labelWidth) {
343
+        collect($this->fields)->each(function($field) use ($fieldWidth, $labelWidth) {
344 344
             $field->setWidth($fieldWidth, $labelWidth);
345 345
         });
346 346
 
Please login to merge, or discard this patch.
src/Grid/Selectable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $this->disablePagination();
87 87
         }
88 88
 
89
-        $this->tools(function (Tools $tools) {
89
+        $this->tools(function(Tools $tools) {
90 90
             $tools->append(new Grid\Selectable\BrowserBtn());
91 91
         });
92 92
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $hide = $hide ? 'hide' : '';
99 99
         $key = $this->key;
100 100
 
101
-        $this->column('__remove__', ' ')->display(function () use ($hide, $key) {
101
+        $this->column('__remove__', ' ')->display(function() use ($hide, $key) {
102 102
             return <<<BTN
103 103
 <a href="javascript:void(0);" class="grid-row-remove {$hide}" data-key="{$this->getAttribute($key)}">
104 104
     <i class="fa fa-trash"></i>
Please login to merge, or discard this patch.
src/Console/ConfigCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         return collect(Arr::dot($from))
54 54
             ->keys()
55
-            ->reject(function ($key) use ($to) {
55
+            ->reject(function($key) use ($to) {
56 56
                 return Arr::has($to, $key);
57 57
             });
58 58
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $this->line('');
67 67
         $this->comment("{$title}:");
68 68
 
69
-        $diff->each(function ($key) use ($error) {
69
+        $diff->each(function($key) use ($error) {
70 70
             if ($error) {
71 71
                 $this->error("    {$key}");
72 72
             } else {
Please login to merge, or discard this patch.
src/Form/Field/Textarea.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             $this->value = json_encode($this->value, JSON_PRETTY_PRINT);
49 49
         }
50 50
 
51
-        $this->mountPicker(function ($btn) {
51
+        $this->mountPicker(function($btn) {
52 52
             $this->addPickBtn($btn);
53 53
         });
54 54
 
Please login to merge, or discard this patch.
src/Form/Field/ValuePicker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
             $value = explode($this->separator, $value);
126 126
         }
127 127
 
128
-        return collect(Arr::wrap($value))->map(function ($item) use ($field) {
128
+        return collect(Arr::wrap($value))->map(function($item) use ($field) {
129 129
             return [
130 130
                 'url'     => $this->field->objectUrl($item),
131 131
                 'value'   => $item,
Please login to merge, or discard this patch.
src/Grid/Tools/BatchActions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
      */
103 103
     protected function addActionScripts()
104 104
     {
105
-        $this->actions->each(function ($action) {
105
+        $this->actions->each(function($action) {
106 106
             $action->setGrid($this->grid);
107 107
 
108 108
             if (method_exists($action, 'script')) {
Please login to merge, or discard this patch.
src/Grid/Column.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 
432 432
         $column = $this;
433 433
 
434
-        return $this->display(function ($value) use ($grid, $column, $abstract, $arguments) {
434
+        return $this->display(function($value) use ($grid, $column, $abstract, $arguments) {
435 435
             /** @var AbstractDisplayer $displayer */
436 436
             $displayer = new $abstract($value, $grid, $column, $this);
437 437
 
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
 
481 481
         $grid = $this->grid;
482 482
 
483
-        return $this->display(function ($_, $column) use ($action, $grid) {
483
+        return $this->display(function($_, $column) use ($action, $grid) {
484 484
             /** @var RowAction $action */
485 485
             $action = new $action();
486 486
 
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
         $grid = $this->grid;
609 609
         $column = $this;
610 610
 
611
-        $this->display(function ($value) use ($grid, $column, $class) {
611
+        $this->display(function($value) use ($grid, $column, $class) {
612 612
             /** @var AbstractDisplayer $definition */
613 613
             $definition = new $class($value, $grid, $column, $this);
614 614
 
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
     protected function htmlEntityEncode($item)
627 627
     {
628 628
         if (is_array($item)) {
629
-            array_walk_recursive($item, function (&$value) {
629
+            array_walk_recursive($item, function(&$value) {
630 630
                 $value = htmlentities($value);
631 631
             });
632 632
         } else {
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
      */
664 664
     protected function callSupportDisplayer($abstract, $arguments)
665 665
     {
666
-        return $this->display(function ($value) use ($abstract, $arguments) {
666
+        return $this->display(function($value) use ($abstract, $arguments) {
667 667
             if (is_array($value) || $value instanceof Arrayable) {
668 668
                 return call_user_func_array([collect($value), $abstract], $arguments);
669 669
             }
@@ -687,7 +687,7 @@  discard block
 block discarded – undo
687 687
     protected function callBuiltinDisplayer($abstract, $arguments)
688 688
     {
689 689
         if ($abstract instanceof Closure) {
690
-            return $this->display(function ($value) use ($abstract, $arguments) {
690
+            return $this->display(function($value) use ($abstract, $arguments) {
691 691
                 return $abstract->call($this, ...array_merge([$value], $arguments));
692 692
             });
693 693
         }
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
             $grid = $this->grid;
697 697
             $column = $this;
698 698
 
699
-            return $this->display(function ($value) use ($abstract, $grid, $column, $arguments) {
699
+            return $this->display(function($value) use ($abstract, $grid, $column, $arguments) {
700 700
                 /** @var AbstractDisplayer $displayer */
701 701
                 $displayer = new $abstract($value, $grid, $column, $this);
702 702
 
Please login to merge, or discard this patch.