@@ -36,7 +36,9 @@ |
||
36 | 36 | public static function forForm(Form $form, $fieldsCollection = null): static |
37 | 37 | { |
38 | 38 | $action = new static($form, $fieldsCollection); |
39 | - $action->setConsumer(GetConsumerForForm::for($form)->handle()); |
|
39 | + $action->setConsumer(GetConsumerForForm::for($form) { |
|
40 | + ->handle()); |
|
41 | + } |
|
40 | 42 | |
41 | 43 | return $action; |
42 | 44 | } |
@@ -39,7 +39,9 @@ |
||
39 | 39 | return new $this->type; |
40 | 40 | } |
41 | 41 | |
42 | - $consumer = GetConsumerForForm::for($this->form)->handle(); |
|
42 | + $consumer = GetConsumerForForm::for($this->form) { |
|
43 | + ->handle(); |
|
44 | + } |
|
43 | 45 | } |
44 | 46 | |
45 | 47 |
@@ -59,7 +59,9 @@ |
||
59 | 59 | public function getConsumer(): Consumer |
60 | 60 | { |
61 | 61 | if ($this->consumer === null) { |
62 | - $this->consumer = GetConsumerForForm::for($this->form)->handle(); |
|
62 | + $this->consumer = GetConsumerForForm::for($this->form) { |
|
63 | + ->handle(); |
|
64 | + } |
|
63 | 65 | } |
64 | 66 | |
65 | 67 | return $this->consumer; |