Completed
Push — travis-xenial ( 84a270...92e80e )
by Kamil
26:32 queued 04:30
created
src/Sylius/Behat/Client/ResponseCheckerInterface.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@
 block discarded – undo
36 36
     /** @param string|int $value */
37 37
     public function hasValue(Response $response, string $key, $value): bool;
38 38
 
39
-    /** @param string|int $value */
39
+    /** @param string $value */
40 40
     public function hasValueInCollection(Response $response, string $key, $value): bool;
41 41
 
42 42
     /** @param string|int $value */
43 43
     public function hasItemWithValue(Response $response, string $key, $value): bool;
44 44
 
45
-    /** @param string|array $value */
45
+    /** @param string $value */
46 46
     public function hasItemOnPositionWithValue(Response $response, int $position, string $key, $value): bool;
47 47
 
48 48
     public function hasItemWithTranslation(Response $response, string $locale, string $key, string $translation): bool;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShopBundle/EventListener/NonChannelLocaleListener.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -86,6 +86,9 @@
 block discarded – undo
86 86
         }
87 87
     }
88 88
 
89
+    /**
90
+     * @param FirewallConfig $firewall
91
+     */
89 92
     private function isFirewallSupported(?FirewallConfig $firewall = null): bool
90 93
     {
91 94
         return
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Model/Taxon.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -62,6 +62,7 @@
 block discarded – undo
62 62
 
63 63
     /**
64 64
      * {@inheritdoc}
65
+     * @param string $code
65 66
      */
66 67
     public function setCode(?string $code): void
67 68
     {
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Api/Admin/ManagingProductReviewsContext.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -170,9 +170,9 @@
 block discarded – undo
170 170
     {
171 171
         $id = (string) $this->sharedStorage->get('product_review_id');
172 172
         Assert::false(
173
-           $this->isItemOnIndex('id', $id),
174
-           sprintf('Product review with id %s exist', $id)
175
-       );
173
+            $this->isItemOnIndex('id', $id),
174
+            sprintf('Product review with id %s exist', $id)
175
+        );
176 176
     }
177 177
 
178 178
     /**
Please login to merge, or discard this patch.
Sylius/Behat/Context/Api/Admin/ManagingProductAssociationTypesContext.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,10 +65,10 @@
 block discarded – undo
65 65
     {
66 66
         $this->client->updateRequestData([
67 67
             'translations' => [
68
-                 $localeCode => [
69
-                      'name' => $productAssociationTypeName,
70
-                      'locale' => $localeCode,
71
-                 ],
68
+                    $localeCode => [
69
+                        'name' => $productAssociationTypeName,
70
+                        'locale' => $localeCode,
71
+                    ],
72 72
             ],
73 73
         ]);
74 74
     }
Please login to merge, or discard this patch.
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/ChannelInterface.php 1 patch
Doc Comments   +63 added lines patch added patch discarded remove patch
@@ -27,48 +27,105 @@  discard block
 block discarded – undo
27 27
     CurrenciesAwareInterface,
28 28
     LocalesAwareInterface
29 29
 {
30
+    /**
31
+     * @return CurrencyInterface
32
+     */
30 33
     public function getBaseCurrency(): ?CurrencyInterface;
31 34
 
35
+    /**
36
+     * @return void
37
+     */
32 38
     public function setBaseCurrency(?CurrencyInterface $currency): void;
33 39
 
40
+    /**
41
+     * @return LocaleInterface
42
+     */
34 43
     public function getDefaultLocale(): ?LocaleInterface;
35 44
 
45
+    /**
46
+     * @return void
47
+     */
36 48
     public function setDefaultLocale(?LocaleInterface $locale): void;
37 49
 
50
+    /**
51
+     * @return ZoneInterface
52
+     */
38 53
     public function getDefaultTaxZone(): ?ZoneInterface;
39 54
 
55
+    /**
56
+     * @return void
57
+     */
40 58
     public function setDefaultTaxZone(?ZoneInterface $defaultTaxZone): void;
41 59
 
60
+    /**
61
+     * @return string
62
+     */
42 63
     public function getTaxCalculationStrategy(): ?string;
43 64
 
65
+    /**
66
+     * @return void
67
+     */
44 68
     public function setTaxCalculationStrategy(?string $taxCalculationStrategy): void;
45 69
 
70
+    /**
71
+     * @return string
72
+     */
46 73
     public function getThemeName(): ?string;
47 74
 
75
+    /**
76
+     * @return void
77
+     */
48 78
     public function setThemeName(?string $themeName): void;
49 79
 
80
+    /**
81
+     * @return string
82
+     */
50 83
     public function getContactEmail(): ?string;
51 84
 
85
+    /**
86
+     * @return void
87
+     */
52 88
     public function setContactEmail(?string $contactEmail): void;
53 89
 
54 90
     public function isSkippingShippingStepAllowed(): bool;
55 91
 
92
+    /**
93
+     * @return void
94
+     */
56 95
     public function setSkippingShippingStepAllowed(bool $skippingShippingStepAllowed): void;
57 96
 
58 97
     public function isSkippingPaymentStepAllowed(): bool;
59 98
 
99
+    /**
100
+     * @return void
101
+     */
60 102
     public function setSkippingPaymentStepAllowed(bool $skippingPaymentStepAllowed): void;
61 103
 
62 104
     public function isAccountVerificationRequired(): bool;
63 105
 
106
+    /**
107
+     * @return void
108
+     */
64 109
     public function setAccountVerificationRequired(bool $accountVerificationRequired): void;
65 110
 
111
+    /**
112
+     * @return ShopBillingDataInterface|null
113
+     */
66 114
     public function getShopBillingData(): ?ShopBillingDataInterface;
67 115
 
116
+    /**
117
+     * @return void
118
+     */
68 119
     public function setShopBillingData(ShopBillingDataInterface $shopBillingData): void;
69 120
 
121
+    /**
122
+     * @return TaxonInterface|null
123
+     */
70 124
     public function getMenuTaxon(): ?TaxonInterface;
71 125
 
126
+    /**
127
+     * @return void
128
+     */
72 129
     public function setMenuTaxon(?TaxonInterface $menuTaxon): void;
73 130
 
74 131
     /**
@@ -78,8 +135,14 @@  discard block
 block discarded – undo
78 135
      */
79 136
     public function getCountries(): Collection;
80 137
 
138
+    /**
139
+     * @return void
140
+     */
81 141
     public function addCountry(CountryInterface $country): void;
82 142
 
143
+    /**
144
+     * @return void
145
+     */
83 146
     public function removeCountry(CountryInterface $country): void;
84 147
 
85 148
     public function hasCountry(CountryInterface $country): bool;
Please login to merge, or discard this patch.