Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
IrisOlfermann committed Jan 15, 2024
1 parent b30b1ac commit d5ed4d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Mealz/MealBundle/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function listParticipantsByDate(DateTime $date): JSONResponse
$data = $this->participationSrv->getParticipationList($day);

foreach ($data as $participant) {
$list[] = $participant->getProfile()->getFirstName() .' '. $participant->getProfile()->getName();
$list[] = $participant->getProfile()->getFirstName() .' '. $participant->getProfile()->getName();
}

$uniqueArray = array_unique($list);
Expand Down
2 changes: 1 addition & 1 deletion src/Mealz/MealBundle/Repository/ParticipantRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function getParticipantsByDay(DateTime $date, array $options = []): array

$queryBuilder = $this->getQueryBuilderWithOptions($options);
$queryBuilder->andWhere('m.dateTime LIKE :date');
$queryBuilder->setParameter(':date', $date);
$queryBuilder->setParameter(':date', $date->format("2024-03-21"));

$queryBuilder->orderBy('u.name', 'ASC');

Expand Down

0 comments on commit d5ed4d6

Please sign in to comment.