@@ -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\Promotion\Model; |
| 15 | 15 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * {@inheritdoc} |
| 59 | 59 | */ |
| 60 | - public function setType(?string $type): void |
|
| 60 | + public function setType(?string $type) : void |
|
| 61 | 61 | { |
| 62 | 62 | $this->type = $type; |
| 63 | 63 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | /** |
| 90 | 90 | * {@inheritdoc} |
| 91 | 91 | */ |
| 92 | - public function setPromotion(?PromotionInterface $promotion): void |
|
| 92 | + public function setPromotion(?PromotionInterface $promotion) : void |
|
| 93 | 93 | { |
| 94 | 94 | $this->promotion = $promotion; |
| 95 | 95 | } |
@@ -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\Promotion\Model; |
| 15 | 15 | |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | /** |
| 127 | 127 | * {@inheritdoc} |
| 128 | 128 | */ |
| 129 | - public function setCode(?string $code): void |
|
| 129 | + public function setCode(?string $code) : void |
|
| 130 | 130 | { |
| 131 | 131 | $this->code = $code; |
| 132 | 132 | } |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | /** |
| 143 | 143 | * {@inheritdoc} |
| 144 | 144 | */ |
| 145 | - public function setName(?string $name): void |
|
| 145 | + public function setName(?string $name) : void |
|
| 146 | 146 | { |
| 147 | 147 | $this->name = $name; |
| 148 | 148 | } |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | /** |
| 159 | 159 | * {@inheritdoc} |
| 160 | 160 | */ |
| 161 | - public function setDescription(?string $description): void |
|
| 161 | + public function setDescription(?string $description) : void |
|
| 162 | 162 | { |
| 163 | 163 | $this->description = $description; |
| 164 | 164 | } |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | /** |
| 175 | 175 | * {@inheritdoc} |
| 176 | 176 | */ |
| 177 | - public function setPriority(?int $priority): void |
|
| 177 | + public function setPriority(?int $priority) : void |
|
| 178 | 178 | { |
| 179 | 179 | $this->priority = null === $priority ? -1 : $priority; |
| 180 | 180 | } |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | /** |
| 191 | 191 | * {@inheritdoc} |
| 192 | 192 | */ |
| 193 | - public function setExclusive(?bool $exclusive): void |
|
| 193 | + public function setExclusive(?bool $exclusive) : void |
|
| 194 | 194 | { |
| 195 | 195 | $this->exclusive = $exclusive; |
| 196 | 196 | } |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | /** |
| 207 | 207 | * {@inheritdoc} |
| 208 | 208 | */ |
| 209 | - public function setUsageLimit(?int $usageLimit): void |
|
| 209 | + public function setUsageLimit(?int $usageLimit) : void |
|
| 210 | 210 | { |
| 211 | 211 | $this->usageLimit = $usageLimit; |
| 212 | 212 | } |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | /** |
| 223 | 223 | * {@inheritdoc} |
| 224 | 224 | */ |
| 225 | - public function setUsed(?int $used): void |
|
| 225 | + public function setUsed(?int $used) : void |
|
| 226 | 226 | { |
| 227 | 227 | $this->used = $used; |
| 228 | 228 | } |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | /** |
| 249 | 249 | * {@inheritdoc} |
| 250 | 250 | */ |
| 251 | - public function setStartsAt(?\DateTimeInterface $startsAt): void |
|
| 251 | + public function setStartsAt(?\DateTimeInterface $startsAt) : void |
|
| 252 | 252 | { |
| 253 | 253 | $this->startsAt = $startsAt; |
| 254 | 254 | } |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | /** |
| 265 | 265 | * {@inheritdoc} |
| 266 | 266 | */ |
| 267 | - public function setEndsAt(?\DateTimeInterface $endsAt): void |
|
| 267 | + public function setEndsAt(?\DateTimeInterface $endsAt) : void |
|
| 268 | 268 | { |
| 269 | 269 | $this->endsAt = $endsAt; |
| 270 | 270 | } |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | /** |
| 281 | 281 | * {@inheritdoc} |
| 282 | 282 | */ |
| 283 | - public function setCouponBased(?bool $couponBased): void |
|
| 283 | + public function setCouponBased(?bool $couponBased) : void |
|
| 284 | 284 | { |
| 285 | 285 | $this->couponBased = (bool) $couponBased; |
| 286 | 286 | } |
@@ -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\Promotion\Model; |
| 15 | 15 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * {@inheritdoc} |
| 73 | 73 | */ |
| 74 | - public function setCode(?string $code): void |
|
| 74 | + public function setCode(?string $code) : void |
|
| 75 | 75 | { |
| 76 | 76 | $this->code = $code; |
| 77 | 77 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | /** |
| 88 | 88 | * {@inheritdoc} |
| 89 | 89 | */ |
| 90 | - public function setUsageLimit(?int $usageLimit): void |
|
| 90 | + public function setUsageLimit(?int $usageLimit) : void |
|
| 91 | 91 | { |
| 92 | 92 | $this->usageLimit = $usageLimit; |
| 93 | 93 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | /** |
| 130 | 130 | * {@inheritdoc} |
| 131 | 131 | */ |
| 132 | - public function setPromotion(?PromotionInterface $promotion): void |
|
| 132 | + public function setPromotion(?PromotionInterface $promotion) : void |
|
| 133 | 133 | { |
| 134 | 134 | $this->promotion = $promotion; |
| 135 | 135 | } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | /** |
| 146 | 146 | * {@inheritdoc} |
| 147 | 147 | */ |
| 148 | - public function setExpiresAt(?\DateTimeInterface $expiresAt = null): void |
|
| 148 | + public function setExpiresAt(?\DateTimeInterface $expiresAt = null) : void |
|
| 149 | 149 | { |
| 150 | 150 | $this->expiresAt = $expiresAt; |
| 151 | 151 | } |
@@ -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\PromotionBundle\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 | $loader->load('services.xml'); |
| 35 | 35 | $loader->load(sprintf('services/integrations/%s.xml', $config['driver'])); |
@@ -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\PromotionBundle\Doctrine\ORM; |
| 15 | 15 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * |
| 50 | 50 | * @return QueryBuilder |
| 51 | 51 | */ |
| 52 | - protected function filterByActive(QueryBuilder $queryBuilder, ?\DateTimeInterface $date = null): QueryBuilder |
|
| 52 | + protected function filterByActive(QueryBuilder $queryBuilder, ?\DateTimeInterface $date = null) : QueryBuilder |
|
| 53 | 53 | { |
| 54 | 54 | return $queryBuilder |
| 55 | 55 | ->andWhere('o.startsAt IS NULL OR o.startsAt < :date') |
@@ -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\PayumBundle\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 | $this->registerResources('sylius', $config['driver'], $config['resources'], $container); |
| 36 | 36 | |
@@ -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\AdminApiBundle\DependencyInjection; |
| 15 | 15 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | public function load(array $config, ContainerBuilder $container): void |
| 35 | 35 | { |
| 36 | 36 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
| 37 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 37 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 38 | 38 | |
| 39 | 39 | $this->registerResources('sylius', $config['driver'], $config['resources'], $container); |
| 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\AdminApiBundle\Controller; |
| 15 | 15 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | private function getPaymentMethods(PaymentInterface $payment, string $locale): array |
| 133 | 133 | { |
| 134 | - $paymentMethods = $this->paymentMethodResolver->getSupportedMethods($payment); |
|
| 134 | + $paymentMethods = $this->paymentMethodResolver->getSupportedMethods($payment); |
|
| 135 | 135 | |
| 136 | 136 | $rawPaymentMethods = []; |
| 137 | 137 | |
@@ -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\AdminApiBundle\Controller; |
| 15 | 15 | |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | */ |
| 141 | 141 | private function getCalculatedShippingMethods(ShipmentInterface $shipment, string $locale): array |
| 142 | 142 | { |
| 143 | - $shippingMethods = $this->shippingMethodsResolver->getSupportedMethods($shipment); |
|
| 143 | + $shippingMethods = $this->shippingMethodsResolver->getSupportedMethods($shipment); |
|
| 144 | 144 | |
| 145 | 145 | $rawShippingMethods = []; |
| 146 | 146 | |