Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahkiasen committed Jun 27, 2024
1 parent 97a995d commit 7eae351
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/Domain/Integrations/Controllers/IntegrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ public function __construct(
private readonly KeyVisibilityUpgradeRepository $keyVisibilityUpgradeRepository,
private readonly SearchService $searchClient,
private readonly CurrentUser $currentUser
)
{
) {
}

public function index(Request $request): Response
Expand Down Expand Up @@ -172,13 +171,14 @@ public function show(string $id): Response
$integration = $this->integrationRepository->getById(Uuid::fromString($id));
$oldCredentialsExpirationDate = $this->getExpirationDateForOldCredentials($integration->getKeyVisibilityUpgrade());

$organizerIds = collect($integration->organizers())->map(fn(Organizer $organizer) => $organizer->organizerId->toString());
$organizers = collect($this->searchClient->findUiTPASOrganizers(...$organizerIds)->getMember()->getItems())->map(function (SapiOrganizer $organizer) {
$organizerIds = collect($integration->organizers())->map(fn (Organizer $organizer) => $organizer->organizerId->toString());
$uitpasOrganizers = $this->searchClient->findUiTPASOrganizers(...$organizerIds)->getMember()?->getItems();
$organizers = collect($uitpasOrganizers)->map(function (SapiOrganizer $organizer) {
$id = explode('/', $organizer->getId() ?? '');

return [
'id' => $id[count($id) - 1],
'name' => $organizer->getName()->getValues(),
'name' => $organizer->getName()?->getValues() ?? $id,
'status' => $organizer->getWorkflowStatus() === 'ACTIVE' ? 'Live' : 'Test',
];
});
Expand Down

0 comments on commit 7eae351

Please sign in to comment.