diff --git a/src/Mealz/MealBundle/Controller/MealGuestController.php b/src/Mealz/MealBundle/Controller/MealGuestController.php index eab01e489..d90de9b77 100644 --- a/src/Mealz/MealBundle/Controller/MealGuestController.php +++ b/src/Mealz/MealBundle/Controller/MealGuestController.php @@ -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); } /** @@ -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 diff --git a/src/Mealz/MealBundle/Service/EventParticipationService.php b/src/Mealz/MealBundle/Service/EventParticipationService.php index 6e5f380e3..2491faa25 100644 --- a/src/Mealz/MealBundle/Service/EventParticipationService.php +++ b/src/Mealz/MealBundle/Service/EventParticipationService.php @@ -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) {