apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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