diff --git a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivity.php b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivity.php index a547ab21e..3a85d46ce 100644 --- a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivity.php +++ b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivity.php @@ -32,12 +32,12 @@ class LoadActivity extends AbstractFixture implements OrderedFixtureInterface $this->faker = FakerFactory::create('fr_FR'); } - public function getOrder() + public function getOrder(): int { return 16400; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $persons = $this->em ->getRepository(Person::class) @@ -87,7 +87,7 @@ class LoadActivity extends AbstractFixture implements OrderedFixtureInterface * * @return \Chill\ActivityBundle\Entity\ActivityReason */ - private function getRandomActivityReason() + private function getRandomActivityReason(): \Chill\ActivityBundle\Entity\ActivityReason { $reasonRef = LoadActivityReason::$references[array_rand(LoadActivityReason::$references)]; @@ -99,7 +99,7 @@ class LoadActivity extends AbstractFixture implements OrderedFixtureInterface * * @return \Chill\ActivityBundle\Entity\ActivityType */ - private function getRandomActivityType() + private function getRandomActivityType(): \Chill\ActivityBundle\Entity\ActivityType { $typeRef = LoadActivityType::$references[array_rand(LoadActivityType::$references)]; @@ -111,7 +111,7 @@ class LoadActivity extends AbstractFixture implements OrderedFixtureInterface * * @return \Chill\MainBundle\Entity\Scope */ - private function getRandomScope() + private function getRandomScope(): \Chill\MainBundle\Entity\Scope { $scopeRef = LoadScopes::$references[array_rand(LoadScopes::$references)]; @@ -123,7 +123,7 @@ class LoadActivity extends AbstractFixture implements OrderedFixtureInterface * * @return \Chill\MainBundle\Entity\User */ - private function getRandomUser() + private function getRandomUser(): \Chill\MainBundle\Entity\User { $userRef = array_rand(LoadUsers::$refs); diff --git a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityReason.php b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityReason.php index af674be9e..5e4e47d35 100644 --- a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityReason.php +++ b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityReason.php @@ -28,7 +28,7 @@ class LoadActivityReason extends AbstractFixture implements OrderedFixtureInterf return 16300; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $reasons = [ [ diff --git a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityReasonCategory.php b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityReasonCategory.php index a78ae3972..3ba97be36 100644 --- a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityReasonCategory.php +++ b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityReasonCategory.php @@ -26,7 +26,7 @@ class LoadActivityReasonCategory extends AbstractFixture implements OrderedFixtu return 16200; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $categs = [ ['name' => ['fr' => 'Logement', 'en' => 'Housing', 'nl' => 'Woning']], diff --git a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityType.php b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityType.php index 891f2c979..b156d7a0f 100644 --- a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityType.php +++ b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityType.php @@ -28,7 +28,7 @@ class LoadActivityType extends Fixture implements OrderedFixtureInterface return 16100; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $types = [ // Exange diff --git a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityTypeCategory.php b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityTypeCategory.php index 2f15a2676..9d160306d 100644 --- a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityTypeCategory.php +++ b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityTypeCategory.php @@ -28,7 +28,7 @@ class LoadActivityTypeCategory extends Fixture implements OrderedFixtureInterfac return 16050; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $categories = [ [ diff --git a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivitytACL.php b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivitytACL.php index e7c893cd9..534cbdd8b 100644 --- a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivitytACL.php +++ b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivitytACL.php @@ -31,7 +31,7 @@ class LoadActivitytACL extends AbstractFixture implements OrderedFixtureInterfac return 16000; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { foreach (LoadPermissionsGroup::$refs as $permissionsGroupRef) { $permissionsGroup = $this->getReference($permissionsGroupRef); diff --git a/src/Bundle/ChillAsideActivityBundle/src/DataFixtures/ORM/LoadAsideActivity.php b/src/Bundle/ChillAsideActivityBundle/src/DataFixtures/ORM/LoadAsideActivity.php index 12c82be00..75cac30a1 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/DataFixtures/ORM/LoadAsideActivity.php +++ b/src/Bundle/ChillAsideActivityBundle/src/DataFixtures/ORM/LoadAsideActivity.php @@ -30,7 +30,7 @@ class LoadAsideActivity extends Fixture implements DependentFixtureInterface ]; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $user = $this->userRepository->findOneBy(['username' => 'center a_social']); diff --git a/src/Bundle/ChillAsideActivityBundle/src/DataFixtures/ORM/LoadAsideActivityCategory.php b/src/Bundle/ChillAsideActivityBundle/src/DataFixtures/ORM/LoadAsideActivityCategory.php index 3e6b4247a..73f764ca5 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/DataFixtures/ORM/LoadAsideActivityCategory.php +++ b/src/Bundle/ChillAsideActivityBundle/src/DataFixtures/ORM/LoadAsideActivityCategory.php @@ -16,7 +16,7 @@ use Doctrine\Persistence\ObjectManager; class LoadAsideActivityCategory extends \Doctrine\Bundle\FixturesBundle\Fixture { - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { foreach ( [ diff --git a/src/Bundle/ChillCustomFieldsBundle/DataFixtures/ORM/LoadOption.php b/src/Bundle/ChillCustomFieldsBundle/DataFixtures/ORM/LoadOption.php index f95991b7c..5baf43508 100644 --- a/src/Bundle/ChillCustomFieldsBundle/DataFixtures/ORM/LoadOption.php +++ b/src/Bundle/ChillCustomFieldsBundle/DataFixtures/ORM/LoadOption.php @@ -51,7 +51,7 @@ class LoadOption extends AbstractFixture implements OrderedFixtureInterface return 1000; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { echo "Loading Options \n"; diff --git a/src/Bundle/ChillDocGeneratorBundle/DataFixtures/ORM/LoadDocGeneratorTemplate.php b/src/Bundle/ChillDocGeneratorBundle/DataFixtures/ORM/LoadDocGeneratorTemplate.php index f38102a10..a136dec58 100644 --- a/src/Bundle/ChillDocGeneratorBundle/DataFixtures/ORM/LoadDocGeneratorTemplate.php +++ b/src/Bundle/ChillDocGeneratorBundle/DataFixtures/ORM/LoadDocGeneratorTemplate.php @@ -23,7 +23,7 @@ use Doctrine\Persistence\ObjectManager; */ class LoadDocGeneratorTemplate extends AbstractFixture { - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $templates = [ [ diff --git a/src/Bundle/ChillDocStoreBundle/DataFixtures/ORM/LoadDocumentACL.php b/src/Bundle/ChillDocStoreBundle/DataFixtures/ORM/LoadDocumentACL.php index 1217c2a12..b18255883 100644 --- a/src/Bundle/ChillDocStoreBundle/DataFixtures/ORM/LoadDocumentACL.php +++ b/src/Bundle/ChillDocStoreBundle/DataFixtures/ORM/LoadDocumentACL.php @@ -29,7 +29,7 @@ class LoadDocumentACL extends AbstractFixture implements OrderedFixtureInterface return 35000; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { foreach (LoadPermissionsGroup::$refs as $permissionsGroupRef) { $permissionsGroup = $this->getReference($permissionsGroupRef); diff --git a/src/Bundle/ChillDocStoreBundle/DataFixtures/ORM/LoadDocumentCategory.php b/src/Bundle/ChillDocStoreBundle/DataFixtures/ORM/LoadDocumentCategory.php index 92c3780fe..4b6dacd8e 100644 --- a/src/Bundle/ChillDocStoreBundle/DataFixtures/ORM/LoadDocumentCategory.php +++ b/src/Bundle/ChillDocStoreBundle/DataFixtures/ORM/LoadDocumentCategory.php @@ -23,7 +23,7 @@ class LoadDocumentCategory extends AbstractFixture implements OrderedFixtureInte return 35010; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $category = (new DocumentCategory('chill-doc-store', 10)) ->setDocumentClass(\Chill\DocStoreBundle\Entity\PersonDocument::class) diff --git a/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadEventTypes.php b/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadEventTypes.php index 1d2668c12..f3e901c88 100644 --- a/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadEventTypes.php +++ b/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadEventTypes.php @@ -30,7 +30,7 @@ class LoadEventTypes extends AbstractFixture implements OrderedFixtureInterface return 30000; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { /* * Echange de savoirs diff --git a/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadParticipation.php b/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadParticipation.php index db431c858..edd937523 100644 --- a/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadParticipation.php +++ b/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadParticipation.php @@ -63,7 +63,7 @@ class LoadParticipation extends AbstractFixture implements OrderedFixtureInterfa return 30010; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $centers = $manager->getRepository(Center::class) ->findAll(); diff --git a/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadRolesACL.php b/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadRolesACL.php index 87e676730..272aa03cb 100644 --- a/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadRolesACL.php +++ b/src/Bundle/ChillEventBundle/DataFixtures/ORM/LoadRolesACL.php @@ -28,7 +28,7 @@ class LoadRolesACL extends AbstractFixture implements OrderedFixtureInterface return 30011; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { foreach (LoadPermissionsGroup::$refs as $permissionsGroupRef) { $permissionsGroup = $this->getReference($permissionsGroupRef); diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadAbstractNotificationsTrait.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadAbstractNotificationsTrait.php index fdecd4092..0e9eb3f84 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadAbstractNotificationsTrait.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadAbstractNotificationsTrait.php @@ -19,7 +19,7 @@ use Doctrine\Persistence\ObjectManager; */ trait LoadAbstractNotificationsTrait { - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { return; diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadAddressReferences.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadAddressReferences.php index d04ef29e8..ccb8c49ae 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadAddressReferences.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadAddressReferences.php @@ -38,7 +38,7 @@ class LoadAddressReferences extends AbstractFixture implements ContainerAwareInt return 51; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { echo "loading some reference address... \n"; diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadCenters.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadCenters.php index d835aad38..c91e5086e 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadCenters.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadCenters.php @@ -36,7 +36,7 @@ class LoadCenters extends AbstractFixture implements OrderedFixtureInterface return 100; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { foreach (static::$centers as $new) { $center = new Center(); diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadCountries.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadCountries.php index 3433eebd7..5a306035e 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadCountries.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadCountries.php @@ -30,7 +30,7 @@ class LoadCountries extends AbstractFixture implements ContainerAwareInterface, return 20; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { echo "loading countries... \n"; diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadGenders.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadGenders.php index 2d74e6977..87505acde 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadGenders.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadGenders.php @@ -43,7 +43,7 @@ class LoadGenders extends AbstractFixture implements OrderedFixtureInterface return 100; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { echo "loading genders... \n"; diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadGroupCenters.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadGroupCenters.php index 8254dec1d..8f19f14bd 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadGroupCenters.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadGroupCenters.php @@ -25,7 +25,7 @@ class LoadGroupCenters extends AbstractFixture implements OrderedFixtureInterfac return 500; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { foreach (LoadCenters::$refs as $centerRef) { foreach (LoadPermissionsGroup::$refs as $permissionGroupRef) { diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadLanguages.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadLanguages.php index c5c03277f..484d1bfdf 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadLanguages.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadLanguages.php @@ -38,7 +38,7 @@ class LoadLanguages extends AbstractFixture implements ContainerAwareInterface, return 10; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { echo "loading languages... \n"; diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPermissionsGroup.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPermissionsGroup.php index 885fc9af6..c1c449c35 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPermissionsGroup.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPermissionsGroup.php @@ -52,7 +52,7 @@ class LoadPermissionsGroup extends AbstractFixture implements OrderedFixtureInte return 400; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { foreach (static::$permissionGroup as $new) { $permissionGroup = new PermissionsGroup(); diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPostalCodes.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPostalCodes.php index 29ee21ca6..4207e87ff 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPostalCodes.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPostalCodes.php @@ -330,7 +330,7 @@ class LoadPostalCodes extends AbstractFixture implements OrderedFixtureInterface return 50; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { echo "loading postal codes... \n"; $this->loadPostalCodeCSV($manager, self::$postalCodeBelgium, 'BE'); diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadRoleScopes.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadRoleScopes.php index 85e3f4ec2..d427bc58c 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadRoleScopes.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadRoleScopes.php @@ -49,7 +49,7 @@ class LoadRoleScopes extends AbstractFixture implements OrderedFixtureInterface return 300; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { foreach (static::$permissions as $key => $permission) { foreach (LoadScopes::$references as $scopeReference) { diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadScopes.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadScopes.php index 10c10de8c..3ec23c03e 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadScopes.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadScopes.php @@ -51,7 +51,7 @@ class LoadScopes extends AbstractFixture implements OrderedFixtureInterface return 200; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { foreach ($this->scopes as $new) { $scope = new \Chill\MainBundle\Entity\Scope(); diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUserGroup.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUserGroup.php index 614a83515..430efaf56 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUserGroup.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUserGroup.php @@ -24,7 +24,7 @@ class LoadUserGroup extends Fixture implements FixtureGroupInterface return ['user-group']; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $centerASocial = $manager->getRepository(User::class)->findOneBy(['username' => 'center a_social']); $centerBSocial = $manager->getRepository(User::class)->findOneBy(['username' => 'center b_social']); diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php index 1c99a3a74..0346890b1 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadUsers.php @@ -59,7 +59,7 @@ class LoadUsers extends AbstractFixture implements ContainerAwareInterface, Orde return 1000; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { foreach (self::$refs as $username => $params) { $user = new User(); diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodClosingMotive.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodClosingMotive.php index fb836ed3a..efbde0a10 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodClosingMotive.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodClosingMotive.php @@ -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(); diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodOrigin.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodOrigin.php index 8eb0688bd..ffb2d096b 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodOrigin.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodOrigin.php @@ -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); diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodWork.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodWork.php index 44992ebef..bf75ddec9 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodWork.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadAccompanyingPeriodWork.php @@ -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 diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadCustomFields.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadCustomFields.php index 2acbcbfbd..68a2a34a5 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadCustomFields.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadCustomFields.php @@ -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); diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php index ba2c67a08..b8963f84c 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHousehold.php @@ -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 diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHouseholdCompositionType.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHouseholdCompositionType.php index c985f26d3..9b81b9cb8 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHouseholdCompositionType.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHouseholdCompositionType.php @@ -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( diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHouseholdPosition.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHouseholdPosition.php index f5c28c8c2..fa3e36900 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHouseholdPosition.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadHouseholdPosition.php @@ -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, diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadMaritalStatus.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadMaritalStatus.php index ddce77d6c..946e858d8 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadMaritalStatus.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadMaritalStatus.php @@ -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"; diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php index f1be52959..ebc24b881 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php @@ -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); diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPersonACL.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPersonACL.php index 4b57dd048..136077799 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPersonACL.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPersonACL.php @@ -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); diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadRelations.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadRelations.php index 529918377..b987d1ebc 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadRelations.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadRelations.php @@ -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"; diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadSocialWorkMetadata.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadSocialWorkMetadata.php index dc1e7b4dd..b5c752639 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadSocialWorkMetadata.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadSocialWorkMetadata.php @@ -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'); diff --git a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadCustomField.php b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadCustomField.php index e32b73544..e8be9fb71 100644 --- a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadCustomField.php +++ b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadCustomField.php @@ -26,7 +26,7 @@ class LoadCustomField extends AbstractFixture implements OrderedFixtureInterface return 15001; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $cFTypes = [ ['type' => 'text', 'options' => ['maxLength' => '255']], diff --git a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadCustomFieldsGroup.php b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadCustomFieldsGroup.php index 6e4639210..2f86dbae3 100644 --- a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadCustomFieldsGroup.php +++ b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadCustomFieldsGroup.php @@ -26,7 +26,7 @@ class LoadCustomFieldsGroup extends AbstractFixture implements OrderedFixtureInt return 15000; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { echo "loading customFieldsGroup...\n"; diff --git a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReportACL.php b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReportACL.php index 2aa175b80..eee7dc3e7 100644 --- a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReportACL.php +++ b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReportACL.php @@ -29,7 +29,7 @@ class LoadReportACL extends AbstractFixture implements OrderedFixtureInterface return 14999; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { foreach (LoadPermissionsGroup::$refs as $permissionsGroupRef) { $permissionsGroup = $this->getReference($permissionsGroupRef); diff --git a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php index 222458a25..1b2928f5c 100644 --- a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php +++ b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php @@ -40,7 +40,7 @@ final class LoadReports extends AbstractFixture implements OrderedFixtureInterfa return 15002; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $this->createExpected($manager); diff --git a/src/Bundle/ChillTaskBundle/DataFixtures/ORM/LoadTaskACL.php b/src/Bundle/ChillTaskBundle/DataFixtures/ORM/LoadTaskACL.php index cb38df91c..1396376c9 100644 --- a/src/Bundle/ChillTaskBundle/DataFixtures/ORM/LoadTaskACL.php +++ b/src/Bundle/ChillTaskBundle/DataFixtures/ORM/LoadTaskACL.php @@ -30,7 +30,7 @@ class LoadTaskACL extends AbstractFixture implements OrderedFixtureInterface return 16000; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { foreach (LoadPermissionsGroup::$refs as $permissionsGroupRef) { $permissionsGroup = $this->getReference($permissionsGroupRef); diff --git a/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdParty.php b/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdParty.php index 7261deba4..043b002fd 100644 --- a/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdParty.php +++ b/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdParty.php @@ -40,7 +40,7 @@ class LoadThirdParty extends Fixture implements DependentFixtureInterface ]; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $thirdParties = $this->getThirdParties()->getObjects(); diff --git a/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdPartyCategory.php b/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdPartyCategory.php index 061c85a4a..e90ccd130 100644 --- a/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdPartyCategory.php +++ b/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdPartyCategory.php @@ -26,7 +26,7 @@ class LoadThirdPartyCategory extends Fixture implements FixtureGroupInterface return ['thirdparty_categories']; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $categories = [ ['name' => ['fr' => 'maison médicale']], diff --git a/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdPartyProfession.php b/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdPartyProfession.php index 265a773cb..0442f05ef 100644 --- a/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdPartyProfession.php +++ b/src/Bundle/ChillThirdPartyBundle/DataFixtures/ORM/LoadThirdPartyProfession.php @@ -26,7 +26,7 @@ class LoadThirdPartyProfession extends Fixture implements FixtureGroupInterface return ['thirdparty_professions']; } - public function load(ObjectManager $manager) + public function load(ObjectManager $manager): void { $professions = [ ['name' => ['fr' => 'Directeur']],