mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 10:05:03 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -52,17 +52,17 @@ class LoadCustomFields extends AbstractFixture implements OrderedFixtureInterfac
|
||||
$manager->flush();
|
||||
}
|
||||
|
||||
private function createCustomFieldChoice()
|
||||
private function createCustomFieldChoice(): \Chill\CustomFieldsBundle\CustomFields\CustomFieldChoice
|
||||
{
|
||||
return $this->customFieldChoice;
|
||||
}
|
||||
|
||||
private function createCustomFieldText()
|
||||
private function createCustomFieldText(): \Chill\CustomFieldsBundle\CustomFields\CustomFieldText
|
||||
{
|
||||
return $this->customFieldText;
|
||||
}
|
||||
|
||||
private function loadData(ObjectManager $manager)
|
||||
private function loadData(ObjectManager $manager): void
|
||||
{
|
||||
$personIds = $this->entityManager
|
||||
->createQuery('SELECT person.id FROM ChillPersonBundle:Person person')
|
||||
@@ -91,7 +91,7 @@ class LoadCustomFields extends AbstractFixture implements OrderedFixtureInterfac
|
||||
}
|
||||
}
|
||||
|
||||
private function loadFields(ObjectManager $manager)
|
||||
private function loadFields(ObjectManager $manager): void
|
||||
{
|
||||
$cfGroup = (new CustomFieldsGroup())
|
||||
->setEntity(Person::class)
|
||||
|
@@ -70,7 +70,7 @@ class LoadHousehold extends Fixture implements DependentFixtureInterface
|
||||
$manager->flush();
|
||||
}
|
||||
|
||||
private function addAddressToHousehold(Household $household, \DateTimeImmutable $date, ObjectManager $manager)
|
||||
private function addAddressToHousehold(Household $household, \DateTimeImmutable $date, ObjectManager $manager): void
|
||||
{
|
||||
if (\random_int(0, 10) > 8) {
|
||||
// 20% of household without address
|
||||
@@ -113,7 +113,7 @@ class LoadHousehold extends Fixture implements DependentFixtureInterface
|
||||
return $objectSet->getObjects()['address1'];
|
||||
}
|
||||
|
||||
private function generateHousehold(ObjectManager $manager, \DateTimeImmutable $startDate)
|
||||
private function generateHousehold(ObjectManager $manager, \DateTimeImmutable $startDate): void
|
||||
{
|
||||
for ($i = 0; self::NUMBER_OF_HOUSEHOLD > $i; ++$i) {
|
||||
$household = new Household();
|
||||
@@ -179,7 +179,7 @@ class LoadHousehold extends Fixture implements DependentFixtureInterface
|
||||
return $persons;
|
||||
}
|
||||
|
||||
private function preparePersonIds()
|
||||
private function preparePersonIds(): void
|
||||
{
|
||||
$centers = LoadCenters::$centers;
|
||||
|
||||
|
@@ -318,7 +318,7 @@ class LoadPeople extends AbstractFixture implements ContainerAwareInterface, Ord
|
||||
$manager->flush();
|
||||
}
|
||||
|
||||
public function loadExpectedPeople(ObjectManager $manager)
|
||||
public function loadExpectedPeople(ObjectManager $manager): void
|
||||
{
|
||||
echo "loading expected people...\n";
|
||||
|
||||
@@ -343,7 +343,7 @@ class LoadPeople extends AbstractFixture implements ContainerAwareInterface, Ord
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
private function addAPerson(Person $person, ObjectManager $manager)
|
||||
private function addAPerson(Person $person, ObjectManager $manager): void
|
||||
{
|
||||
$accompanyingPeriod = new AccompanyingPeriod(
|
||||
(new \DateTime())
|
||||
|
Reference in New Issue
Block a user