mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -17,27 +17,20 @@ use Chill\CustomFieldsBundle\CustomFields\CustomFieldTitle;
|
||||
use Chill\CustomFieldsBundle\Entity\CustomField;
|
||||
use Chill\CustomFieldsBundle\Entity\CustomFieldsDefaultGroup;
|
||||
use Chill\CustomFieldsBundle\Entity\CustomFieldsGroup;
|
||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
use Doctrine\Common\DataFixtures\AbstractFixture;
|
||||
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
use RuntimeException;
|
||||
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
use Twig\Environment;
|
||||
|
||||
class LoadCustomFields extends AbstractFixture implements
|
||||
OrderedFixtureInterface
|
||||
class LoadCustomFields extends AbstractFixture implements OrderedFixtureInterface
|
||||
{
|
||||
private ?\Chill\CustomFieldsBundle\Entity\CustomField $cfText = null;
|
||||
|
||||
private ?\Chill\CustomFieldsBundle\Entity\CustomField $cfChoice = null;
|
||||
|
||||
/**
|
||||
/**
|
||||
* /**
|
||||
* LoadCustomFields constructor.
|
||||
*/
|
||||
public function __construct(
|
||||
@@ -46,7 +39,7 @@ class LoadCustomFields extends AbstractFixture implements
|
||||
private readonly CustomFieldText $customFieldText,
|
||||
) {}
|
||||
|
||||
//put your code here
|
||||
// put your code here
|
||||
public function getOrder()
|
||||
{
|
||||
return 10003;
|
||||
@@ -85,7 +78,7 @@ class LoadCustomFields extends AbstractFixture implements
|
||||
// select a set of people and add data
|
||||
foreach ($personIds as $id) {
|
||||
// add info on 1 person on 2
|
||||
if (random_int(0, 1) === 1) {
|
||||
if (1 === random_int(0, 1)) {
|
||||
/** @var Person $person */
|
||||
$person = $manager->getRepository(Person::class)->find($id);
|
||||
$person->setCFData([
|
||||
|
Reference in New Issue
Block a user