Completed
Push — 1.9 ( afdbdd...913aaa )
by Kamil
01:29
created
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.
src/Sylius/Bundle/AddressingBundle/Form/Type/ZoneType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             ];
73 73
 
74 74
             if ($zone->getType() === ZoneInterface::TYPE_ZONE) {
75
-                $entryOptions['entry_options']['choice_filter'] = static function (?ZoneInterface $subZone) use ($zone): bool {
75
+                $entryOptions['entry_options']['choice_filter'] = static function (?ZoneInterface $subZone) use ($zone) : bool {
76 76
                     return $subZone !== null && $zone->getId() !== $subZone->getId();
77 77
                 };
78 78
             }
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.
src/Sylius/Behat/Service/Helper/JavaScriptTestHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         string $message,
43 43
         ?int $timeout = null
44 44
     ): void {
45
-        $callable = function () use ($notificationChecker, $message, $type): void {
45
+        $callable = function () use ($notificationChecker, $message, $type) : void {
46 46
             $notificationChecker->checkNotification($message, $type);
47 47
         };
48 48
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function waitUntilPageOpens(PageInterface $page, ?array $options = [], ?int $timeout = null): void
53 53
     {
54
-        $callable = function () use ($page, $options): void {
54
+        $callable = function () use ($page, $options) : void {
55 55
             $page->open($options);
56 56
         };
57 57
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/LocaleContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function iShouldBeNotifiedThatThisEmailIsNotValidInLocale(string $localeCode): void
59 59
     {
60
-        Assert::same($this->createPage->getValidationMessage('email'), $this->translate('sylius.contact.email.invalid',  $localeCode, 'validators'));
60
+        Assert::same($this->createPage->getValidationMessage('email'), $this->translate('sylius.contact.email.invalid', $localeCode, 'validators'));
61 61
     }
62 62
 
63 63
     /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/ApiBundle/Serializer/ProductVariantNormalizer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
             return false;
59 59
         }
60 60
 
61
-       return $data instanceof ProductVariantInterface && $this->isAdminGetOperation($context);
61
+        return $data instanceof ProductVariantInterface && $this->isAdminGetOperation($context);
62 62
     }
63 63
 
64 64
     private function isAdminGetOperation(array $context): bool
Please login to merge, or discard this patch.
Validator/Constraints/AddingEligibleProductVariantToCartValidatorSpec.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,9 @@
 block discarded – undo
54 54
             ->shouldThrow(\InvalidArgumentException::class)
55 55
             ->during('validate', [
56 56
                 new AddItemToCart('productCode', 'productVariantCode', 1),
57
-                new class() extends Constraint {}
57
+                new class() extends Constraint
58
+                {
59
+}
58 60
             ])
59 61
         ;
60 62
     }
Please login to merge, or discard this patch.
ApiBundle/spec/Validator/Constraints/CorrectOrderAddressValidatorSpec.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,9 @@
 block discarded – undo
52 52
             ->shouldThrow(\InvalidArgumentException::class)
53 53
             ->during('validate', [
54 54
                 new AddressOrder('[email protected]', $billingAddress->getWrappedObject(), $shippingAddress->getWrappedObject()),
55
-                new class() extends Constraint {}
55
+                new class() extends Constraint
56
+                {
57
+}
56 58
             ])
57 59
         ;
58 60
     }
Please login to merge, or discard this patch.
Doctrine/QueryCollectionExtension/ProductsWithEnableFlagExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         }
48 48
 
49 49
         $rootAlias = $queryBuilder->getRootAliases()[0];
50
-        $queryBuilder->andWhere($rootAlias.'.enabled = :enabled');
50
+        $queryBuilder->andWhere($rootAlias . '.enabled = :enabled');
51 51
         $queryBuilder->setParameter('enabled', true);
52 52
     }
53 53
 }
Please login to merge, or discard this patch.