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

@@ -19,7 +19,7 @@ use Doctrine\Persistence\ObjectManager;
*/
trait LoadAbstractNotificationsTrait
{
public function load(ObjectManager $manager)
public function load(ObjectManager $manager): void
{
return;

View File

@@ -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";

View File

@@ -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();

View File

@@ -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";

View File

@@ -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) {

View File

@@ -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";

View File

@@ -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();

View File

@@ -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');

View File

@@ -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) {

View File

@@ -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();

View File

@@ -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']);

View File

@@ -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();