mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
cs: Fix code-style (using PHPCSFixer and PHPCS).
This commit is contained in:
@@ -14,7 +14,6 @@ namespace Chill\PersonBundle\DataFixtures\ORM;
|
||||
use Chill\PersonBundle\Entity\AccompanyingPeriod\Origin;
|
||||
use Doctrine\Common\DataFixtures\AbstractFixture;
|
||||
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
|
||||
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
|
||||
/**
|
||||
|
@@ -19,6 +19,7 @@ use Chill\PersonBundle\Repository\AccompanyingPeriodRepository;
|
||||
use Chill\PersonBundle\Repository\SocialWork\EvaluationRepository;
|
||||
use DateTimeImmutable;
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
|
||||
use function array_pop;
|
||||
use function array_rand;
|
||||
use function count;
|
||||
|
@@ -28,7 +28,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
|
||||
class LoadCustomFields extends AbstractFixture implements
|
||||
ContainerAwareInterface,
|
||||
ContainerAwareInterface,
|
||||
OrderedFixtureInterface
|
||||
{
|
||||
/**
|
||||
@@ -115,7 +115,9 @@ class LoadCustomFields extends AbstractFixture implements
|
||||
|
||||
// get possible values for cfGroup
|
||||
$choices = array_map(
|
||||
static function ($a) { return $a['slug']; },
|
||||
static function ($a) {
|
||||
return $a['slug'];
|
||||
},
|
||||
$this->customFieldChoice->getOptions()['choices']
|
||||
);
|
||||
// create faker
|
||||
|
@@ -25,6 +25,7 @@ use Doctrine\Common\DataFixtures\DependentFixtureInterface;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
use Nelmio\Alice\Loader\NativeLoader;
|
||||
|
||||
use function array_pop;
|
||||
use function array_rand;
|
||||
use function random_int;
|
||||
|
@@ -31,8 +31,10 @@ class LoadHouseholdPosition extends Fixture
|
||||
|
||||
public function load(ObjectManager $manager)
|
||||
{
|
||||
foreach (self::POSITIONS_DATA as [$name, $share, $allowHolder,
|
||||
$ordering, $ref, ]) {
|
||||
foreach (
|
||||
self::POSITIONS_DATA as [$name, $share, $allowHolder,
|
||||
$ordering, $ref, ]
|
||||
) {
|
||||
$position = (new Position())
|
||||
->setLabel(['fr' => $name])
|
||||
->setAllowHolder($allowHolder)
|
||||
|
@@ -42,6 +42,7 @@ use Nelmio\Alice\Loader\NativeLoader;
|
||||
use Nelmio\Alice\ObjectSet;
|
||||
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
|
||||
use Symfony\Component\Workflow\Registry;
|
||||
|
||||
use function count;
|
||||
use function random_int;
|
||||
use function ucfirst;
|
||||
|
@@ -20,6 +20,7 @@ use Doctrine\Bundle\FixturesBundle\Fixture;
|
||||
use Doctrine\Common\DataFixtures\DependentFixtureInterface;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
|
||||
use function count;
|
||||
|
||||
class LoadRelationships extends Fixture implements DependentFixtureInterface
|
||||
|
Reference in New Issue
Block a user