mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
cs: Enable more risky rules.
This commit is contained in:
@@ -298,7 +298,7 @@ class ParticipationController extends AbstractController
|
||||
*/
|
||||
public function editAction(int $participation_id): Response
|
||||
{
|
||||
/* @var $participation Participation */
|
||||
/** @var Participation $participation */
|
||||
$participation = $this->getDoctrine()->getManager()
|
||||
->getRepository(Participation::class)
|
||||
->find($participation_id);
|
||||
@@ -419,7 +419,7 @@ class ParticipationController extends AbstractController
|
||||
|
||||
public function updateAction(int $participation_id, Request $request): Response
|
||||
{
|
||||
/* @var $participation Participation */
|
||||
/** @var Participation $participation */
|
||||
$participation = $this->getDoctrine()->getManager()
|
||||
->getRepository(Participation::class)
|
||||
->find($participation_id);
|
||||
@@ -460,7 +460,7 @@ class ParticipationController extends AbstractController
|
||||
|
||||
public function updateMultipleAction($event_id, Request $request)
|
||||
{
|
||||
/* @var $event \Chill\EventBundle\Entity\Event */
|
||||
/** @var \Chill\EventBundle\Entity\Event $event */
|
||||
$event = $this->getDoctrine()->getRepository('ChillEventBundle:Event')
|
||||
->find($event_id);
|
||||
|
||||
@@ -642,7 +642,7 @@ class ParticipationController extends AbstractController
|
||||
);
|
||||
|
||||
// create a collection of person's id participating to the event
|
||||
/* @var $peopleParticipating \Doctrine\Common\Collections\ArrayCollection */
|
||||
/** @var \Doctrine\Common\Collections\ArrayCollection $peopleParticipating */
|
||||
$peopleParticipating = $peopleParticipating ??
|
||||
$participation->getEvent()->getParticipations()->map(
|
||||
function (Participation $p) { return $p->getPerson()->getId(); }
|
||||
|
Reference in New Issue
Block a user