@@ -24,13 +24,13 @@ |
||
24 | 24 | <?php foreach ($roles as $role) { ?> |
25 | 25 | <?php |
26 | 26 | $fields = $designer->getAvailable($role)->all(); |
27 | - $id = 'fields-available-'.$role; |
|
27 | + $id = 'fields-available-' . $role; |
|
28 | 28 | ?> |
29 | 29 | <div class="accordion-item"> |
30 | 30 | <h2 class="accordion-header"> |
31 | 31 | <button class="accordion-button" type="button" data-bs-toggle="collapse" |
32 | 32 | data-bs-target="#<?= $id; ?>" aria-expanded="true" aria-controls="<?= $id; ?>"> |
33 | - <?= $this->consumer->getManager()->getLabel('forms.role.'.$role) ?> |
|
33 | + <?= $this->consumer->getManager()->getLabel('forms.role.' . $role) ?> |
|
34 | 34 | </button> |
35 | 35 | </h2> |
36 | 36 | <div id="<?= $id; ?>" class="accordion-collapse collapse show" |
@@ -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 | } |