mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
php cs fixes after updating php cs fixer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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
|
||||
{
|
||||
}
|
||||
|
@@ -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]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user