@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $this->formRepository = $formRepository ?? FormsBuilderModels::forms(); |
26 | 26 | } |
27 | 27 | |
28 | - public static function for(Consumer $consumer) |
|
28 | + public static function for (Consumer $consumer) |
|
29 | 29 | { |
30 | 30 | $action = static::make(); |
31 | 31 | $action->setConsumer($consumer); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | protected function createForm($consumerType) |
60 | 60 | { |
61 | 61 | $form = $this->formRepository->getNew(); |
62 | - $form->name = 'Form '.$this->consumer->getName(); |
|
62 | + $form->name = 'Form ' . $this->consumer->getName(); |
|
63 | 63 | $form->tenant_id = $this->consumer->getTenantId(); |
64 | 64 | $form->tenant = $this->consumer->getTenant(); |
65 | 65 | $form->setConsumerClass($consumerType); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | protected $form; |
14 | 14 | |
15 | - public static function for($form) |
|
15 | + public static function for ($form) |
|
16 | 16 | { |
17 | 17 | $action = static::make(); |
18 | 18 | $action->setForm($form); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | public function bootFormFieldTrait() |
42 | 42 | { |
43 | - $this->addCast('metadata', AsMetadataObject::class.':json'); |
|
43 | + $this->addCast('metadata', AsMetadataObject::class . ':json'); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | public function setConsumerClass($consumerClass) |
@@ -30,7 +30,7 @@ |
||
30 | 30 | { |
31 | 31 | $action = new static($fieldList); |
32 | 32 | $action->setForm($form); |
33 | - $action->setConsumer(GetConsumerForForm::for($form)->handle()); |
|
33 | + $action->setConsumer(GetConsumerForForm::for ($form)->handle()); |
|
34 | 34 | |
35 | 35 | return $action; |
36 | 36 | } |
@@ -30,7 +30,9 @@ |
||
30 | 30 | { |
31 | 31 | $action = new static($fieldList); |
32 | 32 | $action->setForm($form); |
33 | - $action->setConsumer(GetConsumerForForm::for($form)->handle()); |
|
33 | + $action->setConsumer(GetConsumerForForm::for($form) { |
|
34 | + ->handle()); |
|
35 | + } |
|
34 | 36 | |
35 | 37 | return $action; |
36 | 38 | } |