mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 20:43:49 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -16,8 +16,6 @@ use Doctrine\Common\DataFixtures\AbstractFixture;
|
||||
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
|
||||
use function count;
|
||||
|
||||
/**
|
||||
* Load CustomField for Report into database.
|
||||
*/
|
||||
@@ -68,7 +66,7 @@ class LoadCustomField extends AbstractFixture implements OrderedFixtureInterface
|
||||
];
|
||||
|
||||
for ($i = 0; 25 >= $i; ++$i) {
|
||||
$cFType = $cFTypes[random_int(0, count($cFTypes) - 1)];
|
||||
$cFType = $cFTypes[random_int(0, \count($cFTypes) - 1)];
|
||||
|
||||
$customField = (new CustomField())
|
||||
->setSlug("cf_report_{$i}")
|
||||
@@ -76,7 +74,7 @@ class LoadCustomField extends AbstractFixture implements OrderedFixtureInterface
|
||||
->setOptions($cFType['options'])
|
||||
->setName(['fr' => "CustomField {$i}"])
|
||||
->setOrdering(random_int(0, 1000) / 1000)
|
||||
->setCustomFieldsGroup($this->getReference('cf_group_report_' . (random_int(0, 3))));
|
||||
->setCustomFieldsGroup($this->getReference('cf_group_report_'.random_int(0, 3)));
|
||||
|
||||
$manager->persist($customField);
|
||||
}
|
||||
@@ -88,7 +86,7 @@ class LoadCustomField extends AbstractFixture implements OrderedFixtureInterface
|
||||
|
||||
private function createExpectedFields(ObjectManager $manager)
|
||||
{
|
||||
//report logement
|
||||
// report logement
|
||||
$reportLogement = $this->getReference('cf_group_report_logement');
|
||||
|
||||
$houseTitle = (new CustomField())
|
||||
@@ -144,7 +142,7 @@ class LoadCustomField extends AbstractFixture implements OrderedFixtureInterface
|
||||
->setCustomFieldsGroup($reportLogement);
|
||||
$manager->persist($descriptionLogement);
|
||||
|
||||
//report problems
|
||||
// report problems
|
||||
$reportEducation = $this->getReference('cf_group_report_education');
|
||||
|
||||
$title = (new CustomField())
|
||||
|
Reference in New Issue
Block a user