Merge branch '329-gender-docgen-normalization' of https://gitlab.com/Chill-Projet/chill-bundles into 329-gender-docgen-normalization

This commit is contained in:
2024-11-28 12:20:26 +01:00
46 changed files with 49 additions and 49 deletions

View File

@@ -53,7 +53,7 @@ class LoadAccompanyingPeriodClosingMotive extends AbstractFixture implements Ord
return 9500;
}
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
foreach (static::$closingMotives as $ref => $new) {
$motive = new ClosingMotive();

View File

@@ -32,7 +32,7 @@ class LoadAccompanyingPeriodOrigin extends AbstractFixture implements OrderedFix
return 9000;
}
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
$o = new Origin();
$o->setLabel($this->phoneCall);

View File

@@ -35,7 +35,7 @@ class LoadAccompanyingPeriodWork extends \Doctrine\Bundle\FixturesBundle\Fixture
];
}
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
// load all the period which are confirmed
$periods = $this->periodRepository

View File

@@ -45,7 +45,7 @@ class LoadCustomFields extends AbstractFixture implements OrderedFixtureInterfac
return 10003;
}
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
$this->loadFields($manager);
$this->loadData($manager);

View File

@@ -46,7 +46,7 @@ class LoadHousehold extends Fixture implements DependentFixtureInterface
];
}
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
// generate two times the participation. This will lead to
// some movement in participation (same people in two differents

View File

@@ -34,7 +34,7 @@ class LoadHouseholdCompositionType extends AbstractFixture implements FixtureGro
return ['composition-type'];
}
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
foreach (self::TYPES as $type) {
$manager->persist(

View File

@@ -29,7 +29,7 @@ class LoadHouseholdPosition extends Fixture
['Enfant hors ménage', false, false, 3.0, self::CHILD_OUT],
];
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
foreach (
self::POSITIONS_DATA as [$name, $share, $allowHolder,

View File

@@ -36,7 +36,7 @@ class LoadMaritalStatus extends AbstractFixture implements OrderedFixtureInterfa
return 9999;
}
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
echo "loading maritalStatuses... \n";

View File

@@ -310,7 +310,7 @@ class LoadPeople extends AbstractFixture implements ContainerAwareInterface, Ord
return $this->cacheMaritalStatuses[array_rand($this->cacheMaritalStatuses)];
}
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
$this->loadExpectedPeople($manager);
$this->loadRandPeople($manager);

View File

@@ -30,7 +30,7 @@ class LoadPersonACL extends AbstractFixture implements OrderedFixtureInterface
return 9600;
}
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
foreach (LoadPermissionsGroup::$refs as $permissionsGroupRef) {
$permissionsGroup = $this->getReference($permissionsGroupRef);

View File

@@ -35,7 +35,7 @@ class LoadRelations extends Fixture implements FixtureGroupInterface
return ['person_relations'];
}
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
foreach (self::RELATIONS as $key => $value) {
echo 'Creating a new relation type: relation'.$value['title']['fr'].'reverse relation: '.$value['reverseTitle']['fr']."\n";

View File

@@ -26,7 +26,7 @@ class LoadSocialWorkMetadata extends Fixture implements OrderedFixtureInterface
return 9500;
}
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
try {
$csv = Reader::createFromPath(__DIR__.'/data/social_work_metadata.csv');