@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function change(): void |
24 | 24 | { |
25 | - $table_name = PackageConfig::tablesForms().'_pivot'; |
|
25 | + $table_name = PackageConfig::tablesForms() . '_pivot'; |
|
26 | 26 | $exists = $this->hasTable($table_name); |
27 | 27 | if ($exists) { |
28 | 28 | return; |
@@ -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->save(); |
@@ -26,14 +26,14 @@ |
||
26 | 26 | * @param Consumer|Record $consumer |
27 | 27 | * @return int|string|null |
28 | 28 | */ |
29 | - public static function fromRecord(Consumer $consumer): int|string|null |
|
29 | + public static function fromRecord(Consumer $consumer): int | string | null |
|
30 | 30 | { |
31 | 31 | $action = static::make(); |
32 | 32 | |
33 | 33 | return $action->handle($consumer->getManagerName()); |
34 | 34 | } |
35 | 35 | |
36 | - public function handle($consumerClassRepository = null): int|string|null |
|
36 | + public function handle($consumerClassRepository = null): int | string | null |
|
37 | 37 | { |
38 | 38 | $key = array_search($consumerClassRepository, $this->consumerClasses); |
39 | 39 | if (false == $key) { |