php cs fixes after updating php cs fixer

This commit is contained in:
2024-01-10 10:31:25 +01:00
parent 60ede58af0
commit 3c8e59e088
682 changed files with 2097 additions and 882 deletions

View File

@@ -83,7 +83,7 @@ class LoadAndUpdateLanguagesCommand extends Command
$languages = [];
foreach ($chillAvailableLanguages as $avLang) {
$languages[$avLang] = \Symfony\Component\Intl\Languages::getNames();
$languages[$avLang] = Languages::getNames();
}
foreach (Languages::getNames() as $code => $lang) {
@@ -105,7 +105,7 @@ class LoadAndUpdateLanguagesCommand extends Command
$languageDB = $em->getRepository(Language::class)->find($code);
if (null === $languageDB) {
$languageDB = new \Chill\MainBundle\Entity\Language();
$languageDB = new Language();
$languageDB->setId($code);
$em->persist($languageDB);
}

View File

@@ -40,7 +40,7 @@ class LoadCountriesCommand extends Command
$names[$language] = Countries::getName($code, $language);
}
$country = new \Chill\MainBundle\Entity\Country();
$country = new Country();
$country->setName($names)->setCountryCode($code);
$countryEntities[] = $country;
}

View File

@@ -194,8 +194,14 @@ class LoadPostalCodesCommand extends Command
}
}
class ExistingPostalCodeException extends \Exception {}
class ExistingPostalCodeException extends \Exception
{
}
class CountryCodeNotFoundException extends \Exception {}
class CountryCodeNotFoundException extends \Exception
{
}
class PostalCodeNotValidException extends \Exception {}
class PostalCodeNotValidException extends \Exception
{
}

View File

@@ -36,7 +36,7 @@ class SetPasswordCommand extends Command
public function _getUser($username)
{
return $this->entityManager
->getRepository(\Chill\MainBundle\Entity\User::class)
->getRepository(User::class)
->findOneBy(['username' => $username]);
}