Completed
Push — 1.10 ( 41a46f...d920ca )
by Kamil
01:03
created
src/Sylius/Bundle/CoreBundle/Form/Extension/CartTypeExtension.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,8 @@
 block discarded – undo
47 47
     {
48 48
         $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) {
49 49
             return function (FormInterface $form) use ($validationGroups) {
50
-                if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent
50
+                if ((bool) $form->get('promotionCoupon')->getNormData()) {
51
+// Validate the coupon if it was sent
51 52
                     $validationGroups[] = 'sylius_promotion_coupon';
52 53
                 }
53 54
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Tests/Application/SyliusPluginTraitTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@
 block discarded – undo
25 25
      */
26 26
     public function it_does_not_crash(): void
27 27
     {
28
-        $class = new class() extends Bundle {
28
+        $class = new class() extends Bundle
29
+        {
29 30
             use SyliusPluginTrait;
30 31
         };
31 32
 
Please login to merge, or discard this patch.
ApiBundle/spec/Validator/Constraints/UniqueShopUserEmailValidatorSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,8 @@
 block discarded – undo
48 48
 
49 49
     function it_throws_an_exception_if_constraint_is_not_of_expected_type(): void
50 50
     {
51
-        $this->shouldThrow(\InvalidArgumentException::class)->during('validate', ['', new class() extends Constraint {
51
+        $this->shouldThrow(\InvalidArgumentException::class)->during('validate', ['', new class() extends Constraint
52
+        {
52 53
         }]);
53 54
     }
54 55
 
Please login to merge, or discard this patch.
spec/Validator/Constraints/ZoneCannotContainItselfValidatorSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,8 @@
 block discarded – undo
46 46
     {
47 47
         $this
48 48
             ->shouldThrow(\InvalidArgumentException::class)
49
-            ->during('validate', ['', new class() extends Constraint {
49
+            ->during('validate', ['', new class() extends Constraint
50
+            {
50 51
             }])
51 52
         ;
52 53
     }
Please login to merge, or discard this patch.
spec/Validator/Constraints/OrderShippingMethodEligibilityValidatorSpec.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,14 +45,16 @@
 block discarded – undo
45 45
     {
46 46
         $this
47 47
             ->shouldThrow(\InvalidArgumentException::class)
48
-            ->during('validate', ['', new class() extends Constraint {
48
+            ->during('validate', ['', new class() extends Constraint
49
+            {
49 50
             }])
50 51
         ;
51 52
     }
52 53
 
53 54
     function it_throws_an_exception_if_constraint_does_not_type_of_order_shipping_method_eligibility(): void
54 55
     {
55
-        $constraint = new class() extends Constraint implements OrderTokenValueAwareInterface {
56
+        $constraint = new class() extends Constraint implements OrderTokenValueAwareInterface
57
+        {
56 58
             private $orderTokenValue;
57 59
 
58 60
             public function getOrderTokenValue(): ?string
Please login to merge, or discard this patch.
Bundle/ApiBundle/spec/Validator/Constraints/OrderNotEmptyValidatorSpec.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,8 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $this
42 42
             ->shouldThrow(\InvalidArgumentException::class)
43
-            ->during('validate', [new CompleteOrder(), new class() extends Constraint {
43
+            ->during('validate', [new CompleteOrder(), new class() extends Constraint
44
+            {
44 45
             }])
45 46
         ;
46 47
     }
@@ -49,7 +50,8 @@  discard block
 block discarded – undo
49 50
     {
50 51
         $this
51 52
             ->shouldThrow(\InvalidArgumentException::class)
52
-            ->during('validate', ['', new class() extends Constraint {
53
+            ->during('validate', ['', new class() extends Constraint
54
+            {
53 55
             }])
54 56
         ;
55 57
     }
Please login to merge, or discard this patch.
spec/Validator/Constraints/OrderPaymentMethodEligibilityValidatorSpec.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,14 +42,16 @@
 block discarded – undo
42 42
     {
43 43
         $this
44 44
             ->shouldThrow(\InvalidArgumentException::class)
45
-            ->during('validate', ['', new class() extends Constraint {
45
+            ->during('validate', ['', new class() extends Constraint
46
+            {
46 47
             }])
47 48
         ;
48 49
     }
49 50
 
50 51
     function it_throws_an_exception_if_constraint_does_not_type_of_order_shipping_method_eligibility(): void
51 52
     {
52
-        $constraint = new class() extends Constraint implements OrderTokenValueAwareInterface {
53
+        $constraint = new class() extends Constraint implements OrderTokenValueAwareInterface
54
+        {
53 55
             private $orderTokenValue;
54 56
 
55 57
             function getOrderTokenValue(): ?string
Please login to merge, or discard this patch.
spec/Validator/Constraints/PromotionCouponEligibilityValidatorSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,8 @@
 block discarded – undo
48 48
 
49 49
     function it_throws_an_exception_if_constraint_is_not_of_expected_type(): void
50 50
     {
51
-        $this->shouldThrow(\InvalidArgumentException::class)->during('validate', ['', new class() extends Constraint {
51
+        $this->shouldThrow(\InvalidArgumentException::class)->during('validate', ['', new class() extends Constraint
52
+        {
52 53
         }]);
53 54
     }
54 55
 
Please login to merge, or discard this patch.
Component/Channel/spec/Context/CachedPerRequestChannelContextSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,8 @@
 block discarded – undo
115 115
 
116 116
         $decoratedChannelContext
117 117
             ->getChannel()
118
-            ->will(new class($channel->getWrappedObject()) {
118
+            ->will(new class($channel->getWrappedObject())
119
+            {
119 120
                 /** @var int */
120 121
                 private $counter = 0;
121 122
 
Please login to merge, or discard this patch.