@@ -27,14 +27,14 @@ |
||
| 27 | 27 | * @param Consumer|Record $consumer |
| 28 | 28 | * @return int|string|null |
| 29 | 29 | */ |
| 30 | - public static function fromRecord(Consumer $consumer): int|string|null |
|
| 30 | + public static function fromRecord(Consumer $consumer): int | string | null |
|
| 31 | 31 | { |
| 32 | 32 | $action = static::make(); |
| 33 | 33 | |
| 34 | 34 | return $action->handle($consumer->getManagerName()); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - public function handle($consumerClassRepository = null): int|string|null |
|
| 37 | + public function handle($consumerClassRepository = null): int | string | null |
|
| 38 | 38 | { |
| 39 | 39 | return $this->consumerClasses->forRepository($consumerClassRepository)?->getName(); |
| 40 | 40 | } |
@@ -36,7 +36,7 @@ |
||
| 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)->handle()); |
|
| 40 | 40 | |
| 41 | 41 | return $action; |
| 42 | 42 | } |
@@ -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 | } |