@@ -42,9 +42,13 @@ |
||
| 42 | 42 | |
| 43 | 43 | protected function getFormValueRecord($model) |
| 44 | 44 | { |
| 45 | - $values = FindValuesByFormConsumer::for($this->getItem()->getFormBuilder(), $model)->handle(); |
|
| 45 | + $values = FindValuesByFormConsumer::for($this->getItem()->getFormBuilder(), $model) { |
|
| 46 | + ->handle(); |
|
| 47 | + } |
|
| 46 | 48 | |
| 47 | - return FindOrCreateFormValueFromList::for($values)->fieldValue($this->getItem()); |
|
| 49 | + return FindOrCreateFormValueFromList::for($values) { |
|
| 50 | + ->fieldValue($this->getItem()); |
|
| 51 | + } |
|
| 48 | 52 | } |
| 49 | 53 | |
| 50 | 54 | /** |
@@ -34,7 +34,9 @@ |
||
| 34 | 34 | public static function forForm(Form $form, $fieldsCollection = null): static |
| 35 | 35 | { |
| 36 | 36 | $action = new static($form, $fieldsCollection); |
| 37 | - $action->setConsumer(GetConsumerForForm::for($form)->handle()); |
|
| 37 | + $action->setConsumer(GetConsumerForForm::for($form) { |
|
| 38 | + ->handle()); |
|
| 39 | + } |
|
| 38 | 40 | $action->setConsumerConfigGenerateCallback(function () use ($action) { |
| 39 | 41 | return GetConsumerConfig::forConsumer($action->getConsumer())->handle(); |
| 40 | 42 | }); |