Passed
Push — master ( 23523f...41fed7 )
by Damian
21:33 queued 16:23
created
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/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/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
          */
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/Mapping/AffiliateReferralAwareListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,11 +68,11 @@
 block discarded – undo
68 68
                         'referencedColumnName' => 'id',
69 69
                     ],
70 70
                 ],
71
-                'cascade' => ['persist'],
71
+                'cascade' => [ 'persist' ],
72 72
             ];
73 73
 
74 74
             if (null !== $inversedBy) {
75
-                $mapping['inversedBy'] = $inversedBy;
75
+                $mapping[ 'inversedBy' ] = $inversedBy;
76 76
             }
77 77
 
78 78
             $metadata->mapManyToOne($mapping);
Please login to merge, or discard this patch.
ecs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 use PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer;
6 6
 use Symplify\EasyCodingStandard\Config\ECSConfig;
7 7
 
8
-return static function (ECSConfig $ecsConfig): void {
8
+return static function(ECSConfig $ecsConfig): void {
9 9
     $ecsConfig->paths([
10 10
         __DIR__ . '/src',
11 11
         __DIR__ . '/tests/Behat',
@@ -15,6 +15,6 @@  discard block
 block discarded – undo
15 15
     $ecsConfig->import('vendor/sylius-labs/coding-standard/ecs.php');
16 16
 
17 17
     $ecsConfig->skip([
18
-        VisibilityRequiredFixer::class => ['*Spec.php'],
18
+        VisibilityRequiredFixer::class => [ '*Spec.php' ],
19 19
     ]);
20 20
 };
Please login to merge, or discard this patch.