cs: Enable risky rule random_api_migration.

This commit is contained in:
Pol Dellaiera
2021-11-30 11:55:02 +01:00
parent 91d12c4a96
commit a43784c3a1
13 changed files with 27 additions and 27 deletions

View File

@@ -40,7 +40,7 @@ class LoadParticipation extends AbstractFixture implements OrderedFixtureInterfa
for ($i = 0; $i < $expectedNumber; ++$i) {
$event = (new Event())
->setDate($this->faker->dateTimeBetween('-2 years', '+6 months'))
->setName($this->faker->words(rand(2, 4), true))
->setName($this->faker->words(mt_rand(2, 4), true))
->setType($this->getReference(LoadEventTypes::$refs[array_rand(LoadEventTypes::$refs)]))
->setCenter($center)
->setCircle(
@@ -72,7 +72,7 @@ class LoadParticipation extends AbstractFixture implements OrderedFixtureInterfa
/** @var \Chill\PersonBundle\Entity\Person $person */
foreach ($people as $person) {
$nb = rand(0, 3);
$nb = mt_rand(0, 3);
for ($i = 0; $i < $nb; ++$i) {
$event = $events[array_rand($events)];