apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

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