mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
cs: Enable risky rule static_lambda
.
This commit is contained in:
@@ -237,7 +237,7 @@ class ParticipationControllerTest extends WebTestCase
|
||||
$this->personsIdsCache = array_merge(
|
||||
$this->personsIdsCache,
|
||||
$event->getParticipations()->map(
|
||||
function ($p) { return $p->getPerson()->getId(); }
|
||||
static function ($p) { return $p->getPerson()->getId(); }
|
||||
)
|
||||
->toArray()
|
||||
);
|
||||
@@ -301,7 +301,7 @@ class ParticipationControllerTest extends WebTestCase
|
||||
$event = $this->getRandomEventWithMultipleParticipations();
|
||||
|
||||
$persons_id = implode(',', $event->getParticipations()->map(
|
||||
function ($p) { return $p->getPerson()->getId(); }
|
||||
static function ($p) { return $p->getPerson()->getId(); }
|
||||
)->toArray());
|
||||
|
||||
$crawler = $this->client->request(
|
||||
@@ -327,7 +327,7 @@ class ParticipationControllerTest extends WebTestCase
|
||||
$nbParticipations = $event->getParticipations()->count();
|
||||
// get the persons_id participating on this event
|
||||
$persons_id = $event->getParticipations()->map(
|
||||
function ($p) { return $p->getPerson()->getId(); }
|
||||
static function ($p) { return $p->getPerson()->getId(); }
|
||||
)->toArray();
|
||||
// exclude the existing persons_ids from the new person
|
||||
$this->personsIdsCache = array_merge($this->personsIdsCache, $persons_id);
|
||||
@@ -456,7 +456,7 @@ class ParticipationControllerTest extends WebTestCase
|
||||
|
||||
$circles = $this->em->getRepository('ChillMainBundle:Scope')
|
||||
->findAll();
|
||||
array_filter($circles, function ($circle) use ($circleName) {
|
||||
array_filter($circles, static function ($circle) use ($circleName) {
|
||||
return in_array($circleName, $circle->getName());
|
||||
});
|
||||
$circle = $circles[0];
|
||||
|
Reference in New Issue
Block a user