Completed
Push — phpspec-7 ( 2faf6a )
by Kamil
62:22 queued 34:00
created
src/Sylius/Behat/Context/Api/Admin/ManagingShipmentsContext.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -150,10 +150,10 @@
 block discarded – undo
150 150
     public function iShouldSeeTheShippingDateAs(OrderInterface $order, string $dateTime): void
151 151
     {
152 152
         Assert::eq(
153
-             new \DateTime($this->responseChecker->getValue($this->client->show((string) $order->getShipments()->first()->getId()), 'shippedAt')),
154
-             new \DateTime($dateTime),
155
-             'Shipment was shipped in different date'
156
-         );
153
+                new \DateTime($this->responseChecker->getValue($this->client->show((string) $order->getShipments()->first()->getId()), 'shippedAt')),
154
+                new \DateTime($dateTime),
155
+                'Shipment was shipped in different date'
156
+            );
157 157
     }
158 158
 
159 159
     /**
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.
Bundle/ApiBundle/spec/SerializerContextBuilder/LocaleContextBuilderSpec.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,17 +21,17 @@
 block discarded – undo
21 21
 final class LocaleContextBuilderSpec extends ObjectBehavior
22 22
 {
23 23
     function let(
24
-       SerializerContextBuilderInterface $decoratedSerializerContextBuilder,
25
-       LocaleContextInterface $localeContext
26
-   ): void {
24
+        SerializerContextBuilderInterface $decoratedSerializerContextBuilder,
25
+        LocaleContextInterface $localeContext
26
+    ): void {
27 27
         $this->beConstructedWith($decoratedSerializerContextBuilder, $localeContext);
28 28
     }
29 29
 
30 30
     function it_updates_an_context_when_locale_context_has_locale(
31
-       Request $request,
32
-       SerializerContextBuilderInterface $decoratedSerializerContextBuilder,
33
-       LocaleContextInterface $localeContext
34
-   ): void {
31
+        Request $request,
32
+        SerializerContextBuilderInterface $decoratedSerializerContextBuilder,
33
+        LocaleContextInterface $localeContext
34
+    ): void {
35 35
         $decoratedSerializerContextBuilder->createFromRequest($request, true, [])->shouldBeCalled();
36 36
         $localeContext->getLocaleCode()->willReturn('en_US');
37 37
 
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/PromotionCouponInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -17,11 +17,20 @@
 block discarded – undo
17 17
 
18 18
 interface PromotionCouponInterface extends BasePromotionCouponInterface
19 19
 {
20
+    /**
21
+     * @return integer|null
22
+     */
20 23
     public function getPerCustomerUsageLimit(): ?int;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function setPerCustomerUsageLimit(?int $perCustomerUsageLimit): void;
23 29
 
24 30
     public function isReusableFromCancelledOrders(): bool;
25 31
 
32
+    /**
33
+     * @return void
34
+     */
26 35
     public function setReusableFromCancelledOrders(bool $reusableFromCancelledOrders): void;
27 36
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/PromotionExampleFactory.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -164,6 +164,9 @@
 block discarded – undo
164 164
         ;
165 165
     }
166 166
 
167
+    /**
168
+     * @param FactoryInterface|null $couponFactory
169
+     */
167 170
     private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure
168 171
     {
169 172
         return function (Options $options, array $couponDefinitions) use ($couponFactory): array {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
 
167 167
     private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure
168 168
     {
169
-        return function (Options $options, array $couponDefinitions) use ($couponFactory): array {
169
+        return function (Options $options, array $couponDefinitions) use ($couponFactory) : array {
170 170
             if (null === $couponFactory) {
171 171
                 throw new \RuntimeException('You must configure a $couponFactory');
172 172
             }
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.
src/Sylius/Behat/Context/Ui/Admin/ManagingProductsContext.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,16 +18,16 @@
 block discarded – undo
18 18
 use Sylius\Behat\NotificationType;
19 19
 use Sylius\Behat\Page\Admin\Crud\CreatePageInterface;
20 20
 use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface;
21
+use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface;
22
+use Sylius\Behat\Page\Admin\ProductVariant\CreatePageInterface as VariantCreatePageInterface;
23
+use Sylius\Behat\Page\Admin\ProductVariant\GeneratePageInterface;
24
+use Sylius\Behat\Page\Admin\ProductVariant\UpdatePageInterface as VariantUpdatePageInterface;
21 25
 use Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface;
22 26
 use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface;
23 27
 use Sylius\Behat\Page\Admin\Product\IndexPageInterface;
24 28
 use Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface;
25 29
 use Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface;
26 30
 use Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface;
27
-use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface;
28
-use Sylius\Behat\Page\Admin\ProductVariant\CreatePageInterface as VariantCreatePageInterface;
29
-use Sylius\Behat\Page\Admin\ProductVariant\GeneratePageInterface;
30
-use Sylius\Behat\Page\Admin\ProductVariant\UpdatePageInterface as VariantUpdatePageInterface;
31 31
 use Sylius\Behat\Service\NotificationCheckerInterface;
32 32
 use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface;
33 33
 use Sylius\Behat\Service\SharedStorageInterface;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/ProductVariant/UpdatePageInterface.php 1 patch
Doc Comments   +27 added lines patch added patch discarded remove patch
@@ -19,8 +19,14 @@  discard block
 block discarded – undo
19 19
 
20 20
 interface UpdatePageInterface extends BaseUpdatePageInterface
21 21
 {
22
+    /**
23
+     * @return void
24
+     */
22 25
     public function disableTracking(): void;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function enableTracking(): void;
25 31
 
26 32
     public function isCodeDisabled(): bool;
@@ -39,21 +45,42 @@  discard block
 block discarded – undo
39 45
 
40 46
     public function getNameInLanguage(string $language): string;
41 47
 
48
+    /**
49
+     * @return void
50
+     */
42 51
     public function selectOption(string $optionName, string $optionValue): void;
43 52
 
44 53
     public function isShowInShopButtonDisabled(): bool;
45 54
 
55
+    /**
56
+     * @return void
57
+     */
46 58
     public function showProductInChannel(string $channel): void;
47 59
 
60
+    /**
61
+     * @return void
62
+     */
48 63
     public function showProductInSingleChannel(): void;
49 64
 
65
+    /**
66
+     * @return void
67
+     */
50 68
     public function specifyCurrentStock(int $amount): void;
51 69
 
70
+    /**
71
+     * @return void
72
+     */
52 73
     public function specifyPrice(int $price): void;
53 74
 
75
+    /**
76
+     * @return void
77
+     */
54 78
     public function disable(): void;
55 79
 
56 80
     public function isEnabled(): bool;
57 81
 
82
+    /**
83
+     * @return void
84
+     */
58 85
     public function enable(): void;
59 86
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Product/ShowPageInterface.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -22,24 +22,31 @@  discard block
 block discarded – undo
22 22
 {
23 23
     /**
24 24
      * @throws ElementNotFoundException
25
+     * @return void
25 26
      */
26 27
     public function addToCart(): void;
27 28
 
28 29
     /**
29 30
      * @throws ElementNotFoundException
31
+     * @return void
30 32
      */
31 33
     public function addToCartWithQuantity(string $quantity): void;
32 34
 
33 35
     /**
34 36
      * @throws ElementNotFoundException
37
+     * @return void
35 38
      */
36 39
     public function addToCartWithVariant(string $variant): void;
37 40
 
38 41
     /**
39 42
      * @throws ElementNotFoundException
43
+     * @return void
40 44
      */
41 45
     public function addToCartWithOption(ProductOptionInterface $option, string $optionValue): void;
42 46
 
47
+    /**
48
+     * @return null|string
49
+     */
43 50
     public function getAttributeByName(string $name): ?string;
44 51
 
45 52
     public function getAttributes(): array;
@@ -72,10 +79,19 @@  discard block
 block discarded – undo
72 79
 
73 80
     public function countReviews(): int;
74 81
 
82
+    /**
83
+     * @return void
84
+     */
75 85
     public function selectOption(string $optionCode, string $optionValue): void;
76 86
 
87
+    /**
88
+     * @return void
89
+     */
77 90
     public function selectVariant(string $variantName): void;
78 91
 
92
+    /**
93
+     * @return void
94
+     */
79 95
     public function visit(string $url): void;
80 96
 
81 97
     public function getVariantsNames(): array;
Please login to merge, or discard this patch.