@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\MoneyBundle\Templating\Helper; |
| 15 | 15 | |
@@ -27,5 +27,5 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @throws \InvalidArgumentException |
| 29 | 29 | */ |
| 30 | - public function convertAmount(int $amount, ?string $sourceCurrencyCode, ?string $targetCurrencyCode): string; |
|
| 30 | + public function convertAmount(int $amount, ?string $sourceCurrencyCode, ?string $targetCurrencyCode) : string; |
|
| 31 | 31 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\MoneyBundle\Templating\Helper; |
| 15 | 15 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * {@inheritdoc} |
| 36 | 36 | */ |
| 37 | - public function convertAmount(int $amount, ?string $sourceCurrencyCode, ?string $targetCurrencyCode): string |
|
| 37 | + public function convertAmount(int $amount, ?string $sourceCurrencyCode, ?string $targetCurrencyCode) : string |
|
| 38 | 38 | { |
| 39 | 39 | return (string) $this->currencyConverter->convert($amount, $sourceCurrencyCode, $targetCurrencyCode); |
| 40 | 40 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\MoneyBundle\DependencyInjection; |
| 15 | 15 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function load(array $config, ContainerBuilder $container): void |
| 31 | 31 | { |
| 32 | 32 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
| 33 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 33 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 34 | 34 | |
| 35 | 35 | $container->setParameter('sylius_money.locale', $config['locale']); |
| 36 | 36 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | return; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 49 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 50 | 50 | $loader->load('services/integrations/currency.xml'); |
| 51 | 51 | } |
| 52 | 52 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Customer\Model; |
| 15 | 15 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * {@inheritdoc} |
| 106 | 106 | */ |
| 107 | - public function setEmail(?string $email): void |
|
| 107 | + public function setEmail(?string $email) : void |
|
| 108 | 108 | { |
| 109 | 109 | $this->email = $email; |
| 110 | 110 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | /** |
| 121 | 121 | * {@inheritdoc} |
| 122 | 122 | */ |
| 123 | - public function setEmailCanonical(?string $emailCanonical): void |
|
| 123 | + public function setEmailCanonical(?string $emailCanonical) : void |
|
| 124 | 124 | { |
| 125 | 125 | $this->emailCanonical = $emailCanonical; |
| 126 | 126 | } |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | /** |
| 145 | 145 | * {@inheritdoc} |
| 146 | 146 | */ |
| 147 | - public function setFirstName(?string $firstName): void |
|
| 147 | + public function setFirstName(?string $firstName) : void |
|
| 148 | 148 | { |
| 149 | 149 | $this->firstName = $firstName; |
| 150 | 150 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | /** |
| 161 | 161 | * {@inheritdoc} |
| 162 | 162 | */ |
| 163 | - public function setLastName(?string $lastName): void |
|
| 163 | + public function setLastName(?string $lastName) : void |
|
| 164 | 164 | { |
| 165 | 165 | $this->lastName = $lastName; |
| 166 | 166 | } |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | /** |
| 177 | 177 | * {@inheritdoc} |
| 178 | 178 | */ |
| 179 | - public function setBirthday(?\DateTimeInterface $birthday): void |
|
| 179 | + public function setBirthday(?\DateTimeInterface $birthday) : void |
|
| 180 | 180 | { |
| 181 | 181 | $this->birthday = $birthday; |
| 182 | 182 | } |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | /** |
| 193 | 193 | * {@inheritdoc} |
| 194 | 194 | */ |
| 195 | - public function setGender(?string $gender): void |
|
| 195 | + public function setGender(?string $gender) : void |
|
| 196 | 196 | { |
| 197 | 197 | $this->gender = $gender; |
| 198 | 198 | } |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | /** |
| 225 | 225 | * {@inheritdoc} |
| 226 | 226 | */ |
| 227 | - public function setGroup(?CustomerGroupInterface $group): void |
|
| 227 | + public function setGroup(?CustomerGroupInterface $group) : void |
|
| 228 | 228 | { |
| 229 | 229 | $this->group = $group; |
| 230 | 230 | } |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | /** |
| 241 | 241 | * {@inheritdoc} |
| 242 | 242 | */ |
| 243 | - public function setPhoneNumber(?string $phoneNumber): void |
|
| 243 | + public function setPhoneNumber(?string $phoneNumber) : void |
|
| 244 | 244 | { |
| 245 | 245 | $this->phoneNumber = $phoneNumber; |
| 246 | 246 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public function registerContainerConfiguration(LoaderInterface $loader): void |
| 45 | 45 | { |
| 46 | - $loader->load(__DIR__.'/config/config.yml'); |
|
| 46 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\PaymentBundle\DependencyInjection; |
| 15 | 15 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | public function load(array $config, ContainerBuilder $container): void |
| 30 | 30 | { |
| 31 | 31 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
| 32 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 32 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 33 | 33 | |
| 34 | 34 | $this->registerResources('sylius', $config['driver'], $config['resources'], $container); |
| 35 | 35 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\ResourceBundle\Routing; |
| 15 | 15 | |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | bool $isApi = false |
| 153 | 153 | ): Route { |
| 154 | 154 | $defaults = [ |
| 155 | - '_controller' => $metadata->getServiceId('controller').sprintf(':%sAction', $actionName), |
|
| 155 | + '_controller' => $metadata->getServiceId('controller') . sprintf(':%sAction', $actionName), |
|
| 156 | 156 | ]; |
| 157 | 157 | |
| 158 | 158 | if ($isApi && 'index' === $actionName) { |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | */ |
| 212 | 212 | private function getRouteName(MetadataInterface $metadata, array $configuration, string $actionName): string |
| 213 | 213 | { |
| 214 | - $sectionPrefix = isset($configuration['section']) ? $configuration['section'].'_' : ''; |
|
| 214 | + $sectionPrefix = isset($configuration['section']) ? $configuration['section'] . '_' : ''; |
|
| 215 | 215 | |
| 216 | 216 | return sprintf('%s_%s%s_%s', $metadata->getApplicationName(), $sectionPrefix, $metadata->getName(), $actionName); |
| 217 | 217 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\ResourceBundle\EventListener; |
| 15 | 15 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** @var MetadataInterface $translationResourceMetadata */ |
| 127 | - $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias().'_translation'); |
|
| 127 | + $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias() . '_translation'); |
|
| 128 | 128 | |
| 129 | 129 | $metadata->mapOneToMany([ |
| 130 | 130 | 'fieldName' => 'translations', |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | if (!$this->hasUniqueConstraint($metadata, $columns)) { |
| 185 | 185 | $constraints = $metadata->table['uniqueConstraints'] ?? []; |
| 186 | 186 | |
| 187 | - $constraints[$metadata->getTableName().'_uniq_trans'] = [ |
|
| 187 | + $constraints[$metadata->getTableName() . '_uniq_trans'] = [ |
|
| 188 | 188 | 'columns' => $columns, |
| 189 | 189 | ]; |
| 190 | 190 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\ResourceBundle\Doctrine\ORM; |
| 15 | 15 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | } elseif ('' !== $value) { |
| 102 | 102 | $parameter = str_replace('.', '_', $property); |
| 103 | 103 | $queryBuilder |
| 104 | - ->andWhere($queryBuilder->expr()->eq($name, ':'.$parameter)) |
|
| 104 | + ->andWhere($queryBuilder->expr()->eq($name, ':' . $parameter)) |
|
| 105 | 105 | ->setParameter($parameter, $value) |
| 106 | 106 | ; |
| 107 | 107 | } |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | protected function getPropertyName(string $name): string |
| 134 | 134 | { |
| 135 | 135 | if (false === strpos($name, '.')) { |
| 136 | - return 'o'.'.'.$name; |
|
| 136 | + return 'o' . '.' . $name; |
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | return $name; |