Completed
Pull Request — master (#2175)
by m
04:24 queued 16s
created
src/Form.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -305,9 +305,9 @@  discard block
 block discarded – undo
305 305
         $data = $this->model->with($this->getRelations())
306 306
             ->findOrFail($id)->toArray();
307 307
 
308
-        $this->builder->fields()->filter(function ($field) {
308
+        $this->builder->fields()->filter(function($field) {
309 309
             return $field instanceof Field\File;
310
-        })->each(function (File $file) use ($data) {
310
+        })->each(function(File $file) use ($data) {
311 311
             $file->setOriginal($data);
312 312
 
313 313
             $file->destroy();
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
             return $response;
333 333
         }
334 334
 
335
-        DB::transaction(function () {
335
+        DB::transaction(function() {
336 336
             $inserts = $this->prepareInsert($this->updates);
337 337
 
338 338
             foreach ($inserts as $column => $value) {
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
             return $response;
534 534
         }
535 535
 
536
-        DB::transaction(function () {
536
+        DB::transaction(function() {
537 537
             $updates = $this->prepareUpdate($this->updates);
538 538
 
539 539
             foreach ($updates as $column => $value) {
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
     protected function getFieldByColumn($column)
926 926
     {
927 927
         return $this->builder->fields()->first(
928
-            function (Field $field) use ($column) {
928
+            function(Field $field) use ($column) {
929 929
                 if (is_array($field->column())) {
930 930
                     return in_array($column, $field->column());
931 931
                 }
@@ -946,7 +946,7 @@  discard block
 block discarded – undo
946 946
 
947 947
         $values = $this->model->toArray();
948 948
 
949
-        $this->builder->fields()->each(function (Field $field) use ($values) {
949
+        $this->builder->fields()->each(function(Field $field) use ($values) {
950 950
             $field->setOriginal($values);
951 951
         });
952 952
     }
@@ -968,7 +968,7 @@  discard block
 block discarded – undo
968 968
 
969 969
         $data = $this->model->toArray();
970 970
 
971
-        $this->builder->fields()->each(function (Field $field) use ($data) {
971
+        $this->builder->fields()->each(function(Field $field) use ($data) {
972 972
             if (!in_array($field->column(), $this->ignored)) {
973 973
                 $field->fill($data);
974 974
             }
@@ -1089,7 +1089,7 @@  discard block
 block discarded – undo
1089 1089
      */
1090 1090
     public function setWidth($fieldWidth = 8, $labelWidth = 2)
1091 1091
     {
1092
-        $this->builder()->fields()->each(function ($field) use ($fieldWidth, $labelWidth) {
1092
+        $this->builder()->fields()->each(function($field) use ($fieldWidth, $labelWidth) {
1093 1093
             /* @var Field $field  */
1094 1094
             $field->setWidth($fieldWidth, $labelWidth);
1095 1095
         });
Please login to merge, or discard this patch.
src/AdminServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         
70 70
         //remove default feature of double encoding enable in laravel 5.6 or later.
71 71
         $bladeReflectionClass = new \ReflectionClass('\Illuminate\View\Compilers\BladeCompiler');
72
-        if($bladeReflectionClass->hasMethod('withoutDoubleEncoding')){
72
+        if ($bladeReflectionClass->hasMethod('withoutDoubleEncoding')) {
73 73
             Blade::withoutDoubleEncoding();
74 74
         }
75 75
     }
Please login to merge, or discard this patch.
src/Form/Field.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
         if (is_array($attribute)) {
658 658
             $this->attributes = array_merge($this->attributes, $attribute);
659 659
         } else {
660
-            $this->attributes[$attribute] = (string)$value;
660
+            $this->attributes[$attribute] = (string) $value;
661 661
         }
662 662
 
663 663
         return $this;
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
      */
761 761
     public function setElementClass($class)
762 762
     {
763
-        $this->elementClass = (array)$class;
763
+        $this->elementClass = (array) $class;
764 764
 
765 765
         return $this;
766 766
     }
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
         if (!$this->elementClass) {
776 776
             $name = $this->elementName ?: $this->formatName($this->column);
777 777
 
778
-            $this->elementClass = (array)str_replace(['[', ']'], '_', $name);
778
+            $this->elementClass = (array) str_replace(['[', ']'], '_', $name);
779 779
         }
780 780
 
781 781
         return $this->elementClass;
@@ -835,7 +835,7 @@  discard block
 block discarded – undo
835 835
     public function addElementClass($class)
836 836
     {
837 837
         if (is_array($class) || is_string($class)) {
838
-            $this->elementClass = array_merge($this->elementClass, (array)$class);
838
+            $this->elementClass = array_merge($this->elementClass, (array) $class);
839 839
 
840 840
             $this->elementClass = array_unique($this->elementClass);
841 841
         }
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
         $delClass = [];
856 856
 
857 857
         if (is_string($class) || is_array($class)) {
858
-            $delClass = (array)$class;
858
+            $delClass = (array) $class;
859 859
         }
860 860
 
861 861
         foreach ($delClass as $del) {
Please login to merge, or discard this patch.