@@ -5,10 +5,10 @@ |
||
5 | 5 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
6 | 6 | use Symplify\EasyCodingStandard\ValueObject\Option; |
7 | 7 | |
8 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
8 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
9 | 9 | $containerConfigurator->import('vendor/sylius-labs/coding-standard/ecs.php'); |
10 | 10 | |
11 | 11 | $containerConfigurator->parameters()->set(Option::SKIP, [ |
12 | - VisibilityRequiredFixer::class => ['*Spec.php'], |
|
12 | + VisibilityRequiredFixer::class => [ '*Spec.php' ], |
|
13 | 13 | ]); |
14 | 14 | }; |
@@ -92,7 +92,7 @@ |
||
92 | 92 | do { |
93 | 93 | $hash = bin2hex(random_bytes(20)); |
94 | 94 | $code = strtoupper(substr($hash, 0, 8)); |
95 | - } while (null !== $this->promotionCouponRepository->findOneBy(['code' => $code])); |
|
95 | + } while (null !== $this->promotionCouponRepository->findOneBy([ 'code' => $code ])); |
|
96 | 96 | |
97 | 97 | return $code; |
98 | 98 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | public function load(array $configs, ContainerBuilder $container): void |
20 | 20 | { |
21 | - $this->processConfiguration($this->getConfiguration([], $container), $configs); |
|
21 | + $this->processConfiguration($this->getConfiguration([ ], $container), $configs); |
|
22 | 22 | |
23 | 23 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
24 | 24 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | ): void { |
28 | 28 | $this->emailSender->send( |
29 | 29 | Emails::PROMOTION_REWARD, |
30 | - [$customer->getEmail()], |
|
30 | + [ $customer->getEmail() ], |
|
31 | 31 | [ |
32 | 32 | 'coupon' => $coupon, |
33 | 33 | 'channel' => $channel, |
@@ -36,6 +36,6 @@ |
||
36 | 36 | |
37 | 37 | private function resolve(string $rewardType): RewardHandlerInterface |
38 | 38 | { |
39 | - return $this->handlers[$rewardType]; |
|
39 | + return $this->handlers[ $rewardType ]; |
|
40 | 40 | } |
41 | 41 | } |
@@ -70,11 +70,11 @@ |
||
70 | 70 | 'referencedColumnName' => 'id', |
71 | 71 | ] |
72 | 72 | ], |
73 | - 'cascade' => ['persist'] |
|
73 | + 'cascade' => [ 'persist' ] |
|
74 | 74 | ]; |
75 | 75 | |
76 | 76 | if (null !== $inversedBy) { |
77 | - $mapping['inversedBy'] = $inversedBy; |
|
77 | + $mapping[ 'inversedBy' ] = $inversedBy; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | $metadata->mapManyToOne($mapping); |