Completed
Pull Request — master (#5655)
by
unknown
24s
created
src/Form/Field/MultipleFile.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             return false;
64 64
         }
65 65
 		
66
-		if (request()->has(static::FILE_SORT_FLAG)) {
66
+        if (request()->has(static::FILE_SORT_FLAG)) {
67 67
             return false;
68 68
         }
69 69
 
Please login to merge, or discard this patch.
src/Form.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
                 return $ret;
254 254
             }
255 255
 
256
-            collect(explode(',', $id))->filter()->each(function ($id) {
256
+            collect(explode(',', $id))->filter()->each(function($id) {
257 257
                 $builder = $this->model()->newQuery();
258 258
 
259 259
                 if ($this->isSoftDeletes) {
@@ -306,9 +306,9 @@  discard block
 block discarded – undo
306 306
 
307 307
         $data = $model->toArray();
308 308
 
309
-        $this->fields()->filter(function ($field) {
309
+        $this->fields()->filter(function($field) {
310 310
             return $field instanceof Field\File;
311
-        })->each(function (Field\File $file) use ($data) {
311
+        })->each(function(Field\File $file) use ($data) {
312 312
             $file->setOriginal($data);
313 313
 
314 314
             $file->destroy();
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
             return $response;
334 334
         }
335 335
 
336
-        DB::transaction(function () {
336
+        DB::transaction(function() {
337 337
             $inserts = $this->prepareInsert($this->updates);
338 338
 
339 339
             foreach ($inserts as $column => $value) {
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
             return $response;
538 538
         }
539 539
 
540
-        DB::transaction(function () {
540
+        DB::transaction(function() {
541 541
             $updates = $this->prepareUpdate($this->updates);
542 542
 
543 543
             foreach ($updates as $column => $value) {
@@ -710,10 +710,10 @@  discard block
 block discarded – undo
710 710
         }
711 711
 
712 712
         foreach ($sorts as $column => $order) {
713
-            $arr = explode('[',$column);
714
-            if(count($arr) > 1){
713
+            $arr = explode('[', $column);
714
+            if (count($arr) > 1) {
715 715
                 $input[$arr[0]][$arr[1]] = $order;
716
-            }else{
716
+            } else {
717 717
                 $input[$column] = $order;
718 718
             }
719 719
         }
@@ -1018,7 +1018,7 @@  discard block
 block discarded – undo
1018 1018
     protected function getFieldByColumn($column)
1019 1019
     {
1020 1020
         return $this->fields()->first(
1021
-            function (Field $field) use ($column) {
1021
+            function(Field $field) use ($column) {
1022 1022
                 if (is_array($field->column())) {
1023 1023
                     return in_array($column, $field->column());
1024 1024
                 }
@@ -1037,7 +1037,7 @@  discard block
 block discarded – undo
1037 1037
     {
1038 1038
         $values = $this->model->toArray();
1039 1039
 
1040
-        $this->fields()->each(function (Field $field) use ($values) {
1040
+        $this->fields()->each(function(Field $field) use ($values) {
1041 1041
             $field->setOriginal($values);
1042 1042
         });
1043 1043
     }
@@ -1051,7 +1051,7 @@  discard block
 block discarded – undo
1051 1051
     {
1052 1052
         $relations = $this->getRelations();
1053 1053
 
1054
-        $this->fields()->each(function (Field $field) use ($relations) {
1054
+        $this->fields()->each(function(Field $field) use ($relations) {
1055 1055
             if ($field->getSnakeAttributes()) {
1056 1056
                 return;
1057 1057
             }
@@ -1093,7 +1093,7 @@  discard block
 block discarded – undo
1093 1093
 
1094 1094
         $data = $this->model->toArray();
1095 1095
 
1096
-        $this->fields()->each(function (Field $field) use ($data) {
1096
+        $this->fields()->each(function(Field $field) use ($data) {
1097 1097
             if (!in_array($field->column(), $this->ignored, true)) {
1098 1098
                 $field->fill($data);
1099 1099
             }
@@ -1224,7 +1224,7 @@  discard block
 block discarded – undo
1224 1224
      */
1225 1225
     public function setWidth($fieldWidth = 8, $labelWidth = 2): self
1226 1226
     {
1227
-        $this->fields()->each(function ($field) use ($fieldWidth, $labelWidth) {
1227
+        $this->fields()->each(function($field) use ($fieldWidth, $labelWidth) {
1228 1228
             /* @var Field $field  */
1229 1229
             $field->setWidth($fieldWidth, $labelWidth);
1230 1230
         });
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -713,7 +713,7 @@
 block discarded – undo
713 713
             $arr = explode('[',$column);
714 714
             if(count($arr) > 1){
715 715
                 $input[$arr[0]][$arr[1]] = $order;
716
-            }else{
716
+            } else{
717 717
                 $input[$column] = $order;
718 718
             }
719 719
         }
Please login to merge, or discard this patch.