Skip to content

Commit 00823b1

Browse files
author
Sebastian Fix
committed
wip
1 parent bdda8a6 commit 00823b1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/Actions/ViewDataAction.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ public function contacts(string $locale): object
5757
ContactSectionEnum::EMPLOYEE_ADMINISTRATION,
5858
ContactSectionEnum::COLLABORATIONS,
5959
ContactSectionEnum::BOARD_MEMBERS,
60-
])->mapWithKeys(function (string $section) use ($publishedContacts, $locale) {
60+
])->mapWithKeys(function (string $section) use ($publishedContacts, $locale): array {
6161
$contacts = $publishedContacts
62-
->filter(function ($contact) use ($section) {
62+
->filter(function (Contact $contact) use ($section): bool {
6363
$sections = $contact->sections ?? [];
6464

6565
return array_key_exists($section, $sections);
6666
})
67-
->map(fn ($contact) => ContactDTO::fromModel($contact, $section, $locale));
67+
->map(fn (Contact $contact) => ContactDTO::fromModel($contact, $section, $locale));
6868

6969
return [$section => $contacts->values()];
7070
})->all();

0 commit comments

Comments
 (0)