@@ -31,7 +31,9 @@ |
||
31 | 31 | |
32 | 32 | public static function forForm($form) |
33 | 33 | { |
34 | - $consumer = GetConsumerForForm::for($form)->handle(); |
|
34 | + $consumer = GetConsumerForForm::for($form) { |
|
35 | + ->handle(); |
|
36 | + } |
|
35 | 37 | |
36 | 38 | return self::forConsumer($consumer); |
37 | 39 | } |
@@ -36,7 +36,9 @@ |
||
36 | 36 | $action = new static($fieldList); |
37 | 37 | $action->setForm($form); |
38 | 38 | $action->setConsumerGenerateCallback(function () use ($form) { |
39 | - return GetConsumerForForm::for($form)->handle(); |
|
39 | + return GetConsumerForForm::for($form) { |
|
40 | + ->handle(); |
|
41 | + } |
|
40 | 42 | }); |
41 | 43 | |
42 | 44 | $action->setConsumerConfigGenerateCallback(function () use ($action) { |
@@ -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 | }); |