Skip to content

Commit

Permalink
fixed code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Ruf committed Jan 30, 2024
1 parent ec944a4 commit 7008265
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Mealz/MealBundle/Controller/MealGuestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function newGuestInvitation(
): JsonResponse {
$guestInvitation = $guestInvitationRepo->findOrCreateInvitation($this->getUser()->getProfile(), $mealDay);

return new JsonResponse(['url' => $this->generateInvitationUrl($guestInvitation),], 200);
return new JsonResponse(['url' => $this->generateInvitationUrl($guestInvitation)], 200);
}

/**
Expand All @@ -75,9 +75,9 @@ public function newGuestEventInvitation(
): JsonResponse {
$eventInvitation = $guestInvitationRepo->findOrCreateInvitation($this->getUser()->getProfile(), $dayId);

return new JsonResponse(['url' => $this->generateInvitationUrl($eventInvitation, false),], 200);
return new JsonResponse(['url' => $this->generateInvitationUrl($eventInvitation, false)], 200);
}

public function getEventInvitationData(
string $invitationId,
GuestInvitationRepositoryInterface $guestInvitationRepo
Expand Down
2 changes: 1 addition & 1 deletion src/Mealz/MealBundle/Service/EventParticipationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function getEventParticipationData(Day $day, Profile $profile = null): ?a
'eventId' => $eventParticipation->getEvent()->getId(),
'participationId' => $eventParticipation->getId(),
'participations' => count($eventParticipation->getParticipants()),
'isPublic' => $eventParticipation->getEvent()->isPublic()
'isPublic' => $eventParticipation->getEvent()->isPublic(),
];

if (null !== $profile) {
Expand Down

0 comments on commit 7008265

Please sign in to comment.