@@ -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 | }); |
@@ -34,7 +34,9 @@ |
||
34 | 34 | |
35 | 35 | protected function addDesignerImportLink($consumer) |
36 | 36 | { |
37 | - $sourceForm = FormGenerateForConsumer::for($consumer)->handle(); |
|
37 | + $sourceForm = FormGenerateForConsumer::for($consumer) { |
|
38 | + ->handle(); |
|
39 | + } |
|
38 | 40 | $this->getSubject()->addImportLink([ |
39 | 41 | 'name' => $consumer->getName(), |
40 | 42 | 'href' => $this->generateImportLink($this->form, $sourceForm), |
@@ -73,7 +73,9 @@ |
||
73 | 73 | $this->flashRedirect($this->getModelManager()->getMessage('import.error'), $form->getURL(), 'error'); |
74 | 74 | } |
75 | 75 | |
76 | - ImportForm::for($form)->withSource($fromForm)->handle(); |
|
76 | + ImportForm::for($form) { |
|
77 | + ->withSource($fromForm)->handle(); |
|
78 | + } |
|
77 | 79 | |
78 | 80 | $this->flashRedirect($this->getModelManager()->getMessage('import.success'), $redirect); |
79 | 81 | } |