Passed
Push — master ( 843515...db168e )
by Diego
04:15
created
ecs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@
 block discarded – undo
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
 };
Please login to merge, or discard this patch.
src/Reward/Handler/PromotionReward.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/DependencyInjection/OdiseoSyliusReferralsExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Mailer/RewardEmailManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Reward/RewardHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Mapping/AffiliateReferralAwareListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,11 +70,11 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.