mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 05:23:49 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -14,7 +14,6 @@ namespace Chill\Migrations\ThirdParty;
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
use Doctrine\Migrations\AbstractMigration;
|
||||
use libphonenumber\PhoneNumberUtil;
|
||||
use RuntimeException;
|
||||
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
|
||||
|
||||
@@ -40,7 +39,7 @@ final class Version20220302143821 extends AbstractMigration implements Container
|
||||
->getParameter('chill_main')['phone_helper']['default_carrier_code'];
|
||||
|
||||
if (null === $carrier_code) {
|
||||
throw new RuntimeException('no carrier code');
|
||||
throw new \RuntimeException('no carrier code');
|
||||
}
|
||||
|
||||
$this->addSql('ALTER TABLE chill_3party.third_party ALTER telephone TYPE VARCHAR(35)');
|
||||
@@ -49,7 +48,7 @@ final class Version20220302143821 extends AbstractMigration implements Container
|
||||
$this->addSql('COMMENT ON COLUMN chill_3party.third_party.telephone IS \'(DC2Type:phone_number)\'');
|
||||
|
||||
$this->addSql(
|
||||
'UPDATE chill_3party.third_party SET ' .
|
||||
'UPDATE chill_3party.third_party SET '.
|
||||
$this->buildMigrationPhonenumberClause($carrier_code, 'telephone')
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user