Completed
Push — travis-xenial ( 84a270...92e80e )
by Kamil
26:32 queued 04:30
created
src/Sylius/Component/Product/Model/Product.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -464,6 +464,9 @@
 block discarded – undo
464 464
         return new ProductTranslation();
465 465
     }
466 466
 
467
+    /**
468
+     * @param string $fallbackLocaleCode
469
+     */
467 470
     protected function getAttributeInDifferentLocale(
468 471
         ProductAttributeValueInterface $attributeValue,
469 472
         string $localeCode,
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Contact/ContactPageInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -17,10 +17,19 @@
 block discarded – undo
17 17
 
18 18
 interface ContactPageInterface extends PageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function specifyEmail(?string $email): void;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function specifyMessage(?string $message): void;
23 29
 
30
+    /**
31
+     * @return void
32
+     */
24 33
     public function send(): void;
25 34
 
26 35
     public function getValidationMessageFor(string $element): string;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/HomePageInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@  discard block
 block discarded – undo
21 21
 
22 22
     public function hasLogoutButton(): bool;
23 23
 
24
+    /**
25
+     * @return void
26
+     */
24 27
     public function logOut();
25 28
 
26 29
     public function getFullName(): string;
@@ -29,12 +32,18 @@  discard block
 block discarded – undo
29 32
 
30 33
     public function getAvailableCurrencies(): array;
31 34
 
35
+    /**
36
+     * @return void
37
+     */
32 38
     public function switchCurrency(string $currencyCode): void;
33 39
 
34 40
     public function getActiveLocale(): string;
35 41
 
36 42
     public function getAvailableLocales(): array;
37 43
 
44
+    /**
45
+     * @return void
46
+     */
38 47
     public function switchLocale(string $localeCode): void;
39 48
 
40 49
     public function getLatestProductsNames(): array;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Order/ShowPageInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -19,8 +19,14 @@
 block discarded – undo
19 19
 {
20 20
     public function hasPayAction(): bool;
21 21
 
22
+    /**
23
+     * @return void
24
+     */
22 25
     public function pay(): void;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function choosePaymentMethod(string $paymentMethodName): void;
25 31
 
26 32
     public function getNotifications(): array;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Order/ThankYouPageInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -17,8 +17,14 @@  discard block
 block discarded – undo
17 17
 
18 18
 interface ThankYouPageInterface extends SymfonyPageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function goToTheChangePaymentMethodPage(): void;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function goToOrderDetailsInAccount(): void;
23 29
 
24 30
     public function hasThankYouMessage(): bool;
@@ -31,5 +37,8 @@  discard block
 block discarded – undo
31 37
 
32 38
     public function hasRegistrationButton(): bool;
33 39
 
40
+    /**
41
+     * @return void
42
+     */
34 43
     public function createAccount(): void;
35 44
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/AddressPageInterface.php 1 patch
Doc Comments   +45 added lines patch added patch discarded remove patch
@@ -18,48 +18,93 @@
 block discarded – undo
18 18
 
19 19
 interface AddressPageInterface extends SymfonyPageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function chooseDifferentShippingAddress(): void;
22 25
 
23 26
     public function checkInvalidCredentialsValidation(): bool;
24 27
 
25 28
     public function checkValidationMessageFor(string $element, string $message): bool;
26 29
 
30
+    /**
31
+     * @return void
32
+     */
27 33
     public function specifyShippingAddress(AddressInterface $shippingAddress): void;
28 34
 
35
+    /**
36
+     * @return void
37
+     */
29 38
     public function selectShippingAddressProvince(string $province): void;
30 39
 
40
+    /**
41
+     * @return void
42
+     */
31 43
     public function specifyBillingAddress(AddressInterface $billingAddress): void;
32 44
 
45
+    /**
46
+     * @return void
47
+     */
33 48
     public function selectBillingAddressProvince(string $province): void;
34 49
 
50
+    /**
51
+     * @return void
52
+     */
35 53
     public function specifyEmail(?string $email): void;
36 54
 
55
+    /**
56
+     * @return void
57
+     */
37 58
     public function specifyBillingAddressFullName(string $fullName): void;
38 59
 
39 60
     public function canSignIn(): bool;
40 61
 
62
+    /**
63
+     * @return void
64
+     */
41 65
     public function signIn(): void;
42 66
 
67
+    /**
68
+     * @return void
69
+     */
43 70
     public function specifyPassword(string $password): void;
44 71
 
45 72
     public function getItemSubtotal(string $itemName): string;
46 73
 
47 74
     public function getShippingAddressCountry(): string;
48 75
 
76
+    /**
77
+     * @return void
78
+     */
49 79
     public function nextStep(): void;
50 80
 
81
+    /**
82
+     * @return void
83
+     */
51 84
     public function backToStore(): void;
52 85
 
86
+    /**
87
+     * @return void
88
+     */
53 89
     public function specifyBillingAddressProvince(string $provinceName): void;
54 90
 
91
+    /**
92
+     * @return void
93
+     */
55 94
     public function specifyShippingAddressProvince(string $provinceName): void;
56 95
 
57 96
     public function hasShippingAddressInput(): bool;
58 97
 
59 98
     public function hasBillingAddressInput(): bool;
60 99
 
100
+    /**
101
+     * @return void
102
+     */
61 103
     public function selectShippingAddressFromAddressBook(AddressInterface $address): void;
62 104
 
105
+    /**
106
+     * @return void
107
+     */
63 108
     public function selectBillingAddressFromAddressBook(AddressInterface $address): void;
64 109
 
65 110
     public function getPreFilledShippingAddress(): AddressInterface;
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/OrderInterface.php 1 patch
Doc Comments   +75 added lines patch added patch discarded remove patch
@@ -32,22 +32,51 @@  discard block
 block discarded – undo
32 32
     CustomerAwareInterface,
33 33
     ChannelAwareInterface
34 34
 {
35
+    /**
36
+     * @return null|UserInterface
37
+     */
35 38
     public function getUser(): ?UserInterface;
36 39
 
40
+    /**
41
+     * @return AddressInterface|null
42
+     */
37 43
     public function getShippingAddress(): ?AddressInterface;
38 44
 
45
+    /**
46
+     * @param AddressInterface $address
47
+     *
48
+     * @return void
49
+     */
39 50
     public function setShippingAddress(?AddressInterface $address): void;
40 51
 
52
+    /**
53
+     * @return AddressInterface|null
54
+     */
41 55
     public function getBillingAddress(): ?AddressInterface;
42 56
 
57
+    /**
58
+     * @return void
59
+     */
43 60
     public function setBillingAddress(?AddressInterface $address): void;
44 61
 
62
+    /**
63
+     * @return string
64
+     */
45 65
     public function getCheckoutState(): ?string;
46 66
 
67
+    /**
68
+     * @return void
69
+     */
47 70
     public function setCheckoutState(?string $checkoutState): void;
48 71
 
72
+    /**
73
+     * @return string
74
+     */
49 75
     public function getPaymentState(): ?string;
50 76
 
77
+    /**
78
+     * @return void
79
+     */
51 80
     public function setPaymentState(?string $paymentState): void;
52 81
 
53 82
     /**
@@ -75,26 +104,58 @@  discard block
 block discarded – undo
75 104
 
76 105
     public function hasShipments(): bool;
77 106
 
107
+    /**
108
+     * @return void
109
+     */
78 110
     public function addShipment(ShipmentInterface $shipment): void;
79 111
 
112
+    /**
113
+     * @return void
114
+     */
80 115
     public function removeShipment(ShipmentInterface $shipment): void;
81 116
 
117
+    /**
118
+     * @return void
119
+     */
82 120
     public function removeShipments(): void;
83 121
 
84 122
     public function hasShipment(ShipmentInterface $shipment): bool;
85 123
 
124
+    /**
125
+     * @return string|null
126
+     */
86 127
     public function getCurrencyCode(): ?string;
87 128
 
129
+    /**
130
+     * @return void
131
+     */
88 132
     public function setCurrencyCode(?string $currencyCode): void;
89 133
 
134
+    /**
135
+     * @return string|null
136
+     */
90 137
     public function getLocaleCode(): ?string;
91 138
 
139
+    /**
140
+     * @return void
141
+     */
92 142
     public function setLocaleCode(?string $localeCode): void;
93 143
 
144
+    /**
145
+     * @param PromotionCouponInterface $coupon
146
+     *
147
+     * @return void
148
+     */
94 149
     public function setPromotionCoupon(?BaseCouponInterface $coupon): void;
95 150
 
151
+    /**
152
+     * @return string
153
+     */
96 154
     public function getShippingState(): ?string;
97 155
 
156
+    /**
157
+     * @return void
158
+     */
98 159
     public function setShippingState(?string $state): void;
99 160
 
100 161
     public function getLastPayment(?string $state = null): ?PaymentInterface;
@@ -105,12 +166,26 @@  discard block
 block discarded – undo
105 166
 
106 167
     public function getOrderPromotionTotal(): int;
107 168
 
169
+    /**
170
+     * @return string|null
171
+     */
108 172
     public function getTokenValue(): ?string;
109 173
 
174
+    /**
175
+     * @return void
176
+     */
110 177
     public function setTokenValue(?string $tokenValue): void;
111 178
 
179
+    /**
180
+     * @return string|null
181
+     */
112 182
     public function getCustomerIp(): ?string;
113 183
 
184
+    /**
185
+     * @param string|null $customerIp
186
+     *
187
+     * @return void
188
+     */
114 189
     public function setCustomerIp(?string $customerIp): void;
115 190
 
116 191
     /**
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/UserOAuthInterface.php 1 patch
Doc Comments   +32 added lines patch added patch discarded remove patch
@@ -17,19 +17,51 @@
 block discarded – undo
17 17
 
18 18
 interface UserOAuthInterface extends UserAwareInterface, ResourceInterface
19 19
 {
20
+    /**
21
+     * @return string|null
22
+     */
20 23
     public function getProvider(): ?string;
21 24
 
25
+    /**
26
+     * @param string $provider
27
+     *
28
+     * @return void
29
+     */
22 30
     public function setProvider(?string $provider): void;
23 31
 
32
+    /**
33
+     * @return string|null
34
+     */
24 35
     public function getIdentifier(): ?string;
25 36
 
37
+    /**
38
+     * @param string $identifier
39
+     *
40
+     * @return void
41
+     */
26 42
     public function setIdentifier(?string $identifier): void;
27 43
 
44
+    /**
45
+     * @return string|null
46
+     */
28 47
     public function getAccessToken(): ?string;
29 48
 
49
+    /**
50
+     * @param string $accessToken
51
+     *
52
+     * @return void
53
+     */
30 54
     public function setAccessToken(?string $accessToken): void;
31 55
 
56
+    /**
57
+     * @return string|null
58
+     */
32 59
     public function getRefreshToken(): ?string;
33 60
 
61
+    /**
62
+     * @param string|null $refreshToken
63
+     *
64
+     * @return void
65
+     */
34 66
     public function setRefreshToken(?string $refreshToken): void;
35 67
 }
Please login to merge, or discard this patch.
tests/Controller/CheckoutApiTestCase.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             "channel": "CHANNEL",
40 40
             "localeCode": "en_US"
41 41
         }
42
-EOT;
42
+eot;
43 43
 
44 44
         $this->client->request('POST', '/api/v1/carts/', [], [], static::$authorizedHeaderWithContentType, $data);
45 45
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             "variant": "MUG_SW",
61 61
             "quantity": 1
62 62
         }
63
-EOT;
63
+eot;
64 64
 
65 65
         $this->client->request('POST', $url, [], [], static::$authorizedHeaderWithContentType, $data);
66 66
         $this->assertResponseCode($this->client->getResponse(), Response::HTTP_CREATED);
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             },
92 92
             "differentShippingAddress": true
93 93
         }
94
-EOT;
94
+eot;
95 95
 
96 96
         $url = sprintf('/api/v1/checkouts/addressing/%d', $cartId);
97 97
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                 }
117 117
             ]
118 118
         }
119
-EOT;
119
+eot;
120 120
 
121 121
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
122 122
         $this->assertResponseCode($this->client->getResponse(), Response::HTTP_NO_CONTENT);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                 }
141 141
             ]
142 142
         }
143
-EOT;
143
+eot;
144 144
 
145 145
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
146 146
         $this->assertResponseCode($this->client->getResponse(), Response::HTTP_NO_CONTENT);
Please login to merge, or discard this patch.