mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
Add int return type to getOrder() method in fixture classes
This commit is contained in:
@@ -33,7 +33,7 @@ class LoadAddressReferences extends AbstractFixture implements ContainerAwareInt
|
||||
$this->faker = \Faker\Factory::create('fr_FR');
|
||||
}
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 51;
|
||||
}
|
||||
|
@@ -31,7 +31,7 @@ class LoadCenters extends AbstractFixture implements OrderedFixtureInterface
|
||||
|
||||
public static $refs = [];
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 100;
|
||||
}
|
||||
|
@@ -25,12 +25,12 @@ class LoadCountries extends AbstractFixture implements ContainerAwareInterface,
|
||||
{
|
||||
private ?ContainerInterface $container = null;
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
public function load(ObjectManager $manager)
|
||||
public function load(ObjectManager $manager): void
|
||||
{
|
||||
echo "loading countries... \n";
|
||||
|
||||
|
@@ -38,7 +38,7 @@ class LoadGenders extends AbstractFixture implements OrderedFixtureInterface
|
||||
],
|
||||
];
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 100;
|
||||
}
|
||||
|
@@ -20,7 +20,7 @@ class LoadGroupCenters extends AbstractFixture implements OrderedFixtureInterfac
|
||||
{
|
||||
public static $refs = [];
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 500;
|
||||
}
|
||||
|
@@ -33,7 +33,7 @@ class LoadLanguages extends AbstractFixture implements ContainerAwareInterface,
|
||||
// This array contains regional code to not exclude
|
||||
private array $regionalVersionToInclude = ['ro_MD'];
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@ class LoadLocationType extends AbstractFixture implements ContainerAwareInterfac
|
||||
{
|
||||
private ?ContainerInterface $container = null;
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 52;
|
||||
}
|
||||
|
@@ -47,7 +47,7 @@ class LoadPermissionsGroup extends AbstractFixture implements OrderedFixtureInte
|
||||
|
||||
public static $refs = [];
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 400;
|
||||
}
|
||||
|
@@ -325,7 +325,7 @@ class LoadPostalCodes extends AbstractFixture implements OrderedFixtureInterface
|
||||
85800,GIVRAND,FR,85100,46.6822701061,-1.8787272243,INSEE
|
||||
EOF;
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 50;
|
||||
}
|
||||
|
@@ -44,7 +44,7 @@ class LoadRoleScopes extends AbstractFixture implements OrderedFixtureInterface
|
||||
|
||||
public static $references = [];
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 300;
|
||||
}
|
||||
|
@@ -46,7 +46,7 @@ class LoadScopes extends AbstractFixture implements OrderedFixtureInterface
|
||||
],
|
||||
];
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 200;
|
||||
}
|
||||
|
@@ -54,7 +54,7 @@ class LoadUsers extends AbstractFixture implements ContainerAwareInterface, Orde
|
||||
|
||||
private ?ContainerInterface $container = null;
|
||||
|
||||
public function getOrder()
|
||||
public function getOrder(): int
|
||||
{
|
||||
return 1000;
|
||||
}
|
||||
|
@@ -37,7 +37,7 @@ interface SearchInterface
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getOrder();
|
||||
public function getOrder(): int;
|
||||
|
||||
/**
|
||||
* we may desactive the search interface by default. in this case,
|
||||
|
Reference in New Issue
Block a user