mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
apply rector rules
This commit is contained in:
@@ -26,10 +26,7 @@ class LoadAddressReferences extends AbstractFixture implements ContainerAwareInt
|
||||
{
|
||||
protected $faker;
|
||||
|
||||
/**
|
||||
* @var ContainerInterface
|
||||
*/
|
||||
private $container;
|
||||
private ?\Symfony\Component\DependencyInjection\ContainerInterface $container = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
@@ -23,10 +23,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
*/
|
||||
class LoadCountries extends AbstractFixture implements ContainerAwareInterface, OrderedFixtureInterface
|
||||
{
|
||||
/**
|
||||
* @var ContainerInterface
|
||||
*/
|
||||
private $container;
|
||||
private ?\Symfony\Component\DependencyInjection\ContainerInterface $container = null;
|
||||
|
||||
public function getOrder()
|
||||
{
|
||||
|
@@ -27,17 +27,14 @@ use function in_array;
|
||||
class LoadLanguages extends AbstractFixture implements ContainerAwareInterface, OrderedFixtureInterface
|
||||
{
|
||||
// Array of ancien languages (to exclude)
|
||||
private $ancientToExclude = ['ang', 'egy', 'fro', 'goh', 'grc', 'la', 'non', 'peo', 'pro', 'sga',
|
||||
private array $ancientToExclude = ['ang', 'egy', 'fro', 'goh', 'grc', 'la', 'non', 'peo', 'pro', 'sga',
|
||||
'dum', 'enm', 'frm', 'gmh', 'mga', 'akk', 'phn', 'zxx', 'got', 'und', ];
|
||||
|
||||
/**
|
||||
* @var ContainerInterface
|
||||
*/
|
||||
private $container;
|
||||
private ?\Symfony\Component\DependencyInjection\ContainerInterface $container = null;
|
||||
|
||||
// The regional version of language are language with _ in the code
|
||||
// This array contains regional code to not exclude
|
||||
private $regionalVersionToInclude = ['ro_MD'];
|
||||
private array $regionalVersionToInclude = ['ro_MD'];
|
||||
|
||||
public function getOrder()
|
||||
{
|
||||
@@ -78,7 +75,7 @@ class LoadLanguages extends AbstractFixture implements ContainerAwareInterface,
|
||||
$names = [];
|
||||
|
||||
foreach ($this->container->getParameter('chill_main.available_languages') as $lang) {
|
||||
$names[$lang] = \Symfony\Component\Intl\Languages::getName();
|
||||
$names[$lang] = \Symfony\Component\Intl\Languages::getName('en_GB');
|
||||
}
|
||||
|
||||
return $names;
|
||||
|
@@ -23,10 +23,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
*/
|
||||
class LoadLocationType extends AbstractFixture implements ContainerAwareInterface, OrderedFixtureInterface
|
||||
{
|
||||
/**
|
||||
* @var ContainerInterface
|
||||
*/
|
||||
private $container;
|
||||
private ?\Symfony\Component\DependencyInjection\ContainerInterface $container = null;
|
||||
|
||||
public function getOrder()
|
||||
{
|
||||
|
@@ -28,7 +28,7 @@ class LoadPostalCodes extends AbstractFixture implements OrderedFixtureInterface
|
||||
{
|
||||
public static $refs = [];
|
||||
|
||||
private static $postalCodeBelgium = <<<'EOF'
|
||||
private static string $postalCodeBelgium = <<<'EOF'
|
||||
1000,BRUXELLES,BE
|
||||
1020,BRUXELLES,BE
|
||||
1030,SCHAERBEEK,BE
|
||||
@@ -63,7 +63,7 @@ class LoadPostalCodes extends AbstractFixture implements OrderedFixtureInterface
|
||||
1320,BEAUVECHAIN,BE
|
||||
EOF;
|
||||
|
||||
private static $postalCodeFrance = <<<'EOF'
|
||||
private static string $postalCodeFrance = <<<'EOF'
|
||||
85000,LA ROCHE SUR YON,FR,85191,46.6675261644,-1.4077954093,INSEE
|
||||
85000,MOUILLERON LE CAPTIF,FR,85155,46.7104764993,-1.46129661418,INSEE
|
||||
85100,LES SABLES D OLONNE,FR,85194,46.5007612799,-1.79255128677,INSEE
|
||||
|
@@ -56,10 +56,7 @@ class LoadUsers extends AbstractFixture implements ContainerAwareInterface, Orde
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* @var ContainerInterface
|
||||
*/
|
||||
private $container;
|
||||
private ?\Symfony\Component\DependencyInjection\ContainerInterface $container = null;
|
||||
|
||||
public function getOrder()
|
||||
{
|
||||
|
Reference in New Issue
Block a user