Completed
Pull Request — master (#2175)
by m
07:23 queued 01:22
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.