Completed
Push — 1.10-phpspec-7.1 ( 59b820...0cdbea )
by Mateusz
01:01
created
spec/Validator/Constraints/ChosenShippingMethodEligibilityValidatorSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,8 @@
 block discarded – undo
49 49
     {
50 50
         $this
51 51
             ->shouldThrow(\InvalidArgumentException::class)
52
-            ->during('validate', [new ChooseShippingMethod('SHIPPING_METHOD_CODE'), new class() extends Constraint {
52
+            ->during('validate', [new ChooseShippingMethod('SHIPPING_METHOD_CODE'), new class() extends Constraint
53
+            {
53 54
             }])
54 55
         ;
55 56
     }
Please login to merge, or discard this patch.
spec/Validator/Constraints/ChangedItemQuantityInCartValidatorSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,8 @@
 block discarded – undo
58 58
             ->shouldThrow(\InvalidArgumentException::class)
59 59
             ->during('validate', [
60 60
                 new ChangeItemQuantityInCart(2),
61
-                new class() extends Constraint {
61
+                new class() extends Constraint
62
+                {
62 63
                 }
63 64
             ])
64 65
         ;
Please login to merge, or discard this patch.
ApiBundle/spec/Validator/Constraints/OrderItemAvailabilityValidatorSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,8 @@
 block discarded – undo
49 49
             ->shouldThrow(\InvalidArgumentException::class)
50 50
             ->during('validate', [
51 51
                 new CompleteOrder(),
52
-                new class() extends Constraint {
52
+                new class() extends Constraint
53
+                {
53 54
                 }
54 55
             ])
55 56
         ;
Please login to merge, or discard this patch.
Validator/Constraints/AddingEligibleProductVariantToCartValidatorSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,8 @@
 block discarded – undo
58 58
             ->shouldThrow(\InvalidArgumentException::class)
59 59
             ->during('validate', [
60 60
                 new AddItemToCart('productVariantCode', 1),
61
-                new class() extends Constraint {
61
+                new class() extends Constraint
62
+                {
62 63
                 }
63 64
             ])
64 65
         ;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ApiBundle/spec/Serializer/CommandNormalizerSpec.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,9 @@  discard block
 block discarded – undo
33 33
     function it_supports_normalization_if_data_has_get_class_method_and_it_is_missing_constructor_arguments_exception(): void
34 34
     {
35 35
         $this->supportsNormalization(
36
-            new class() { public function getClass(): string { return MissingConstructorArgumentsException::class; }}
36
+            new class()
37
+            {
38
+public function getClass(): string { return MissingConstructorArgumentsException::class; }}
37 39
         )->shouldReturn(true);
38 40
     }
39 41
 
@@ -45,7 +47,9 @@  discard block
 block discarded – undo
45 47
     function it_does_not_support_normalization_if_data_class_is_not_missing_constructor_arguments_exception(): void
46 48
     {
47 49
         $this
48
-            ->supportsNormalization(new class() { public function getClass(): string { return \Exception::class; }})
50
+            ->supportsNormalization(new class()
51
+            {
52
+public function getClass(): string { return \Exception::class; }})
49 53
             ->shouldReturn(false)
50 54
         ;
51 55
     }
@@ -54,7 +58,9 @@  discard block
 block discarded – undo
54 58
     {
55 59
         $this
56 60
             ->supportsNormalization(
57
-                new class() { public function getClass(): string { return MissingConstructorArgumentsException::class; }},
61
+                new class()
62
+                {
63
+public function getClass(): string { return MissingConstructorArgumentsException::class; }},
58 64
                 null,
59 65
                 ['command_normalizer_already_called' => true]
60 66
             )
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 ?string $orderTokenValue = null;
57 59
 
58 60
             public function getOrderTokenValue(): ?string
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 ?string $orderTokenValue = null;
54 56
 
55 57
             function getOrderTokenValue(): ?string
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
                 private int $counter = 0;
120 121
 
121 122
                 private ChannelInterface $channel;
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/DependencyInjection/Configuration.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
                                     ->addDefaultsIfNotSet()
88 88
                                     ->children()
89 89
                                         ->scalarNode('model')->defaultValue(AvatarImage::class)->cannotBeEmpty()->end()
90
-										->scalarNode('interface')->defaultValue(AvatarImageInterface::class)->cannotBeEmpty()->end()
90
+                                        ->scalarNode('interface')->defaultValue(AvatarImageInterface::class)->cannotBeEmpty()->end()
91 91
                                         ->scalarNode('repository')->defaultValue(AvatarImageRepository::class)->cannotBeEmpty()->end()
92 92
                                         ->scalarNode('factory')->defaultValue(Factory::class)->end()
93 93
                                     ->end()
Please login to merge, or discard this patch.