@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | return []; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - public static function for(Model $model, $request = null): self |
|
| 37 | + public static function for (Model $model, $request = null): self |
|
| 38 | 38 | { |
| 39 | 39 | return new static($model, $request ?? request()); |
| 40 | 40 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | $fields = $this->composeFields($fields); |
| 45 | 45 | |
| 46 | - $fields->each(function ($field) { |
|
| 46 | + $fields->each(function($field) { |
|
| 47 | 47 | if ($this->fieldExists($field->getName()) && $this->allowedField($field->getName())) { |
| 48 | 48 | $this->model->{$field->getName()} = $field->getValue(); |
| 49 | 49 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | { |
| 77 | 77 | return collect($fields) |
| 78 | 78 | ->flatten() |
| 79 | - ->map(function ($field) { |
|
| 79 | + ->map(function($field) { |
|
| 80 | 80 | if (empty($field)) { |
| 81 | 81 | return false; |
| 82 | 82 | } else { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | return $field; |
| 92 | 92 | } |
| 93 | 93 | }) |
| 94 | - ->filter(function ($field) { |
|
| 94 | + ->filter(function($field) { |
|
| 95 | 95 | return $field instanceof AbstractField; |
| 96 | 96 | }); |
| 97 | 97 | } |