mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
[phpstan fix] Add void return type on all fixture load methods
This commit is contained in:
@@ -19,7 +19,7 @@ use Doctrine\Persistence\ObjectManager;
|
||||
*/
|
||||
trait LoadAbstractNotificationsTrait
|
||||
{
|
||||
public function load(ObjectManager $manager)
|
||||
public function load(ObjectManager $manager): void
|
||||
{
|
||||
return;
|
||||
|
||||
|
@@ -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";
|
||||
|
||||
|
@@ -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();
|
||||
|
@@ -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";
|
||||
|
||||
|
@@ -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";
|
||||
|
||||
|
@@ -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) {
|
||||
|
@@ -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";
|
||||
|
||||
|
@@ -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();
|
||||
|
@@ -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');
|
||||
|
@@ -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) {
|
||||
|
@@ -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();
|
||||
|
@@ -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']);
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user