Completed
Push — master ( 180b39...223e7c )
by Song
18:08 queued 15:22
created
src/Form.php 1 patch
Spacing   +10 added lines, -10 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
             $field->fill($data);
973 973
         });
974 974
     }
@@ -1087,7 +1087,7 @@  discard block
 block discarded – undo
1087 1087
      */
1088 1088
     public function setWidth($fieldWidth = 8, $labelWidth = 2)
1089 1089
     {
1090
-        $this->builder()->fields()->each(function ($field) use ($fieldWidth, $labelWidth) {
1090
+        $this->builder()->fields()->each(function($field) use ($fieldWidth, $labelWidth) {
1091 1091
             /* @var Field $field  */
1092 1092
             $field->setWidth($fieldWidth, $labelWidth);
1093 1093
         });
@@ -1174,8 +1174,8 @@  discard block
 block discarded – undo
1174 1174
             $segments = array_slice($segments, 0, $slice);
1175 1175
         }
1176 1176
         // # fix #1768 
1177
-        if($segments[0] == 'http:' && config('admin.secure') == true) {
1178
-            $segments [0] = 'https:' ;
1177
+        if ($segments[0] == 'http:' && config('admin.secure') == true) {
1178
+            $segments [0] = 'https:';
1179 1179
         }
1180 1180
         return implode('/', $segments);
1181 1181
     }
Please login to merge, or discard this patch.