mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
cs: Fix code-style (using PHPCSFixer and PHPCS).
This commit is contained in:
@@ -25,6 +25,7 @@ use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||
use Symfony\Component\Form\FormInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
use function count;
|
||||
|
||||
/**
|
||||
@@ -112,7 +113,9 @@ class ParticipationController extends AbstractController
|
||||
[
|
||||
'event_id' => current($participations)->getEvent()->getId(),
|
||||
'persons_ids' => implode(',', array_map(
|
||||
static function (Participation $p) { return $p->getPerson()->getId(); },
|
||||
static function (Participation $p) {
|
||||
return $p->getPerson()->getId();
|
||||
},
|
||||
$participations
|
||||
)),
|
||||
]
|
||||
@@ -648,7 +651,9 @@ class ParticipationController extends AbstractController
|
||||
/** @var \Doctrine\Common\Collections\ArrayCollection $peopleParticipating */
|
||||
$peopleParticipating = $peopleParticipating ??
|
||||
$participation->getEvent()->getParticipations()->map(
|
||||
static function (Participation $p) { return $p->getPerson()->getId(); }
|
||||
static function (Participation $p) {
|
||||
return $p->getPerson()->getId();
|
||||
}
|
||||
);
|
||||
// check that the user is not already in the event
|
||||
if ($peopleParticipating->contains($participation->getPerson()->getId())) {
|
||||
|
Reference in New Issue
Block a user