cs: Second part - ignore test/app subdirectory.

This commit is contained in:
Pol Dellaiera
2021-11-23 14:34:34 +01:00
parent 5f37304796
commit 3ea35682eb
72 changed files with 326 additions and 365 deletions

View File

@@ -275,7 +275,7 @@ class ParticipationController extends AbstractController
$this->addFlash(
'success',
$this->get('translator')
->trans('The participation has been sucessfully removed')
->trans('The participation has been sucessfully removed')
);
return $this->redirectToRoute('chill_event__event_show', [
@@ -551,8 +551,7 @@ class ParticipationController extends AbstractController
Request $request,
Participation $participation,
bool $multiple = false
)
{
) {
$em = $this->getDoctrine()->getManager();
if ($em->contains($participation)) {
@@ -653,8 +652,8 @@ class ParticipationController extends AbstractController
$ignoredParticipations[] = $participation
->getEvent()->getParticipations()->filter(
function (Participation $p) use ($participation) {
return $p->getPerson()->getId() === $participation->getPerson()->getId();
}
return $p->getPerson()->getId() === $participation->getPerson()->getId();
}
)->first();
} else {
$newParticipations[] = $participation;