mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
DX: apply rector rulesset up to PHP72
This commit is contained in:
@@ -68,15 +68,15 @@ class LoadCustomField extends AbstractFixture implements OrderedFixtureInterface
|
||||
];
|
||||
|
||||
for ($i = 0; 25 >= $i; ++$i) {
|
||||
$cFType = $cFTypes[mt_rand(0, count($cFTypes) - 1)];
|
||||
$cFType = $cFTypes[random_int(0, count($cFTypes) - 1)];
|
||||
|
||||
$customField = (new CustomField())
|
||||
->setSlug("cf_report_{$i}")
|
||||
->setType($cFType['type'])
|
||||
->setOptions($cFType['options'])
|
||||
->setName(['fr' => "CustomField {$i}"])
|
||||
->setOrdering(mt_rand(0, 1000) / 1000)
|
||||
->setCustomFieldsGroup($this->getReference('cf_group_report_' . (mt_rand(0, 3))));
|
||||
->setOrdering(random_int(0, 1000) / 1000)
|
||||
->setCustomFieldsGroup($this->getReference('cf_group_report_' . (random_int(0, 3))));
|
||||
|
||||
$manager->persist($customField);
|
||||
}
|
||||
|
Reference in New Issue
Block a user