mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-31 20:13:49 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -18,9 +18,6 @@ use Doctrine\Common\DataFixtures\AbstractFixture;
|
||||
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
|
||||
use function strtolower;
|
||||
use function ucwords;
|
||||
|
||||
/**
|
||||
* Description of LoadPostalCodes.
|
||||
*/
|
||||
@@ -351,7 +348,7 @@ class LoadPostalCodes extends AbstractFixture implements OrderedFixtureInterface
|
||||
$c = new PostalCode();
|
||||
$c->setCountry($country)
|
||||
->setCode($code[0])
|
||||
->setName(ucwords(strtolower($code[1])));
|
||||
->setName(\ucwords(\strtolower($code[1])));
|
||||
|
||||
if (null !== ($code[3] ?? null)) {
|
||||
$c->setRefPostalCodeId($code[3]);
|
||||
@@ -366,7 +363,7 @@ class LoadPostalCodes extends AbstractFixture implements OrderedFixtureInterface
|
||||
}
|
||||
|
||||
$manager->persist($c);
|
||||
$ref = 'postal_code_' . $code[0];
|
||||
$ref = 'postal_code_'.$code[0];
|
||||
|
||||
if (!$this->hasReference($ref)) {
|
||||
$this->addReference($ref, $c);
|
||||
|
Reference in New Issue
Block a user