Completed
Push — locale-in-url ( 151bbf...6507a9 )
by Kamil
20:45
created
Validator/Constraints/OrderShippingMethodEligibilityValidator.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,6 @@
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-     * @param OrderInterface $value
40
-     *
41
-     * {@inheritdoc}
42 39
      */
43 40
     public function validate($order, Constraint $constraint)
44 41
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductVariantInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param float $weight
38
+     * @return void
38 39
      */
39 40
     public function setWeight($weight);
40 41
 
@@ -45,6 +46,7 @@  discard block
 block discarded – undo
45 46
 
46 47
     /**
47 48
      * @param float $width
49
+     * @return void
48 50
      */
49 51
     public function setWidth($width);
50 52
 
@@ -55,6 +57,7 @@  discard block
 block discarded – undo
55 57
 
56 58
     /**
57 59
      * @param float $height
60
+     * @return void
58 61
      */
59 62
     public function setHeight($height);
60 63
 
@@ -65,16 +68,19 @@  discard block
 block discarded – undo
65 68
 
66 69
     /**
67 70
      * @param float $depth
71
+     * @return void
68 72
      */
69 73
     public function setDepth($depth);
70 74
 
71 75
     /**
72 76
      * @param TaxCategoryInterface $category
77
+     * @return void
73 78
      */
74 79
     public function setTaxCategory(TaxCategoryInterface $category = null);
75 80
 
76 81
     /**
77 82
      * @param ShippingCategoryInterface $shippingCategory
83
+     * @return void
78 84
      */
79 85
     public function setShippingCategory(ShippingCategoryInterface $shippingCategory);
80 86
 
@@ -106,11 +112,13 @@  discard block
 block discarded – undo
106 112
 
107 113
     /**
108 114
      * @param ChannelPricingInterface $channelPricing
115
+     * @return void
109 116
      */
110 117
     public function addChannelPricing(ChannelPricingInterface $channelPricing);
111 118
 
112 119
     /**
113 120
      * @param ChannelPricingInterface $channelPricing
121
+     * @return void
114 122
      */
115 123
     public function removeChannelPricing(ChannelPricingInterface $channelPricing);
116 124
 
@@ -121,6 +129,7 @@  discard block
 block discarded – undo
121 129
 
122 130
     /**
123 131
      * @param bool $shippingRequired
132
+     * @return void
124 133
      */
125 134
     public function setShippingRequired($shippingRequired);
126 135
 }
Please login to merge, or discard this patch.
tests/Controller/CheckoutPaymentApiTest.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use Sylius\Component\Core\Model\OrderInterface;
15 15
 use Sylius\Component\Core\Model\PaymentMethodInterface;
16
-use Sylius\Component\Core\Model\ShippingMethodInterface;
17 16
 use Symfony\Component\HttpFoundation\Response;
18 17
 
19 18
 /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         $this->addressOrder($cart);
60 60
 
61
-        $this->client->request('PATCH',  $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType);
61
+        $this->client->request('PATCH', $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType);
62 62
 
63 63
         $response = $this->client->getResponse();
64 64
         $this->assertResponse($response, 'checkout/payment_invalid_order_state', Response::HTTP_INTERNAL_SERVER_ERROR);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         }
90 90
 EOT;
91 91
 
92
-        $this->client->request('PUT',  $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
92
+        $this->client->request('PUT', $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
93 93
 
94 94
         $response = $this->client->getResponse();
95 95
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 }
88 88
             ]
89 89
         }
90
-EOT;
90
+eot;
91 91
 
92 92
         $this->client->request('PUT',  $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
93 93
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
                 }
183 183
             ]
184 184
         }
185
-EOT;
185
+eot;
186 186
 
187 187
         $this->client->request('PUT', $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
188 188
 
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
                 }
225 225
             ]
226 226
         }
227
-EOT;
227
+eot;
228 228
 
229 229
         $this->client->request('PUT', $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
230 230
 
Please login to merge, or discard this patch.
tests/Controller/OrderApiTest.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
 namespace Sylius\Tests\Controller;
13 13
 
14 14
 use Lakion\ApiTestCase\JsonApiTestCase;
15
-use Sylius\Component\Core\Model\OrderInterface;
16
-use Sylius\Component\Order\Model\OrderItemInterface;
17 15
 use Symfony\Component\HttpFoundation\Response;
18 16
 
19 17
 /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
62 62
         $orderData = $this->loadFixturesFromFile('resources/cart.yml');
63 63
 
64
-        $this->client->request('GET', '/api/v1/orders/'.$orderData['order_001']->getId(), [], [], static::$authorizedHeaderWithAccept);
64
+        $this->client->request('GET', '/api/v1/orders/' . $orderData['order_001']->getId(), [], [], static::$authorizedHeaderWithAccept);
65 65
 
66 66
         $response = $this->client->getResponse();
67 67
         $this->assertResponse($response, 'order/cart_show_response', Response::HTTP_OK);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
76 76
         $orderData = $this->loadFixturesFromFile('resources/order.yml');
77 77
 
78
-        $this->client->request('GET', '/api/v1/orders/'.$orderData['order_001']->getId(), [], [], static::$authorizedHeaderWithAccept);
78
+        $this->client->request('GET', '/api/v1/orders/' . $orderData['order_001']->getId(), [], [], static::$authorizedHeaderWithAccept);
79 79
 
80 80
         $response = $this->client->getResponse();
81 81
         $this->assertResponse($response, 'order/order_show_response', Response::HTTP_OK);
Please login to merge, or discard this patch.
tests/Controller/CartApiTest.php 1 patch
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             "channel": "WEB",
133 133
             "locale_code": "en_US"
134 134
         }
135
-EOT;
135
+eot;
136 136
 
137 137
         $this->client->request('POST', '/api/v1/carts/', [], [], static::$authorizedHeaderWithContentType, $data);
138 138
 
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
             "variant": "MUG_SW",
294 294
             "quantity": 1
295 295
         }
296
-EOT;
296
+eot;
297 297
         $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
298 298
 
299 299
         $response = $this->client->getResponse();
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
             "variant": "MUG_SW",
318 318
             "quantity": -1
319 319
         }
320
-EOT;
320
+eot;
321 321
         $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
322 322
 
323 323
         $response = $this->client->getResponse();
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
             "variant": "MUG_SW",
342 342
             "quantity": 3
343 343
         }
344
-EOT;
344
+eot;
345 345
         $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
346 346
 
347 347
         $response = $this->client->getResponse();
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
             "variant": "HARD_AVAILABLE_MUG",
366 366
             "quantity": 1
367 367
         }
368
-EOT;
368
+eot;
369 369
         $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
370 370
 
371 371
         $response = $this->client->getResponse();
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
             "variant": "HARD_AVAILABLE_MUG",
390 390
             "quantity": 3
391 391
         }
392
-EOT;
392
+eot;
393 393
         $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
394 394
 
395 395
         $response = $this->client->getResponse();
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
         {
426 426
             "variant": "MUG_SW"
427 427
         }
428
-EOT;
428
+eot;
429 429
 
430 430
 
431 431
         $this->client->request('PUT', $this->getCartItemUrl($cart, $cartItem), [], [], static::$authorizedHeaderWithContentType, $data);
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
         {
453 453
             "quantity": 3
454 454
         }
455
-EOT;
455
+eot;
456 456
         $this->client->request('PUT', $this->getCartItemUrl($cart, $cartItem), [], [], static::$authorizedHeaderWithContentType, $data);
457 457
 
458 458
         $response = $this->client->getResponse();
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
         {
483 483
             "quantity": 3
484 484
         }
485
-EOT;
485
+eot;
486 486
         $this->client->request('PUT', $this->getCartItemUrl($cart, $cartItem), [], [], static::$authorizedHeaderWithContentType, $data);
487 487
 
488 488
         $response = $this->client->getResponse();
Please login to merge, or discard this patch.
tests/Controller/CheckoutAddressingApiTest.php 1 patch
Upper-Lower-Casing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 "email": "[email protected]"
82 82
             }
83 83
         }
84
-EOT;
84
+eot;
85 85
 
86 86
         $this->client->request('PUT', $this->getAddressingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
87 87
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 "email": "[email protected]"
118 118
             }
119 119
         }
120
-EOT;
120
+eot;
121 121
 
122 122
         $this->client->request('PUT', $this->getAddressingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
123 123
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                 "email": "[email protected]"
155 155
             }
156 156
         }
157
-EOT;
157
+eot;
158 158
 
159 159
         $this->client->request('PUT', $this->getAddressingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
160 160
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
                 "email": "[email protected]"
199 199
             }
200 200
         }
201
-EOT;
201
+eot;
202 202
 
203 203
         $this->client->request('PUT', $this->getAddressingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
204 204
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
                 "email": "[email protected]"
240 240
             }
241 241
         }
242
-EOT;
242
+eot;
243 243
 
244 244
         $this->client->request('PUT', $this->getAddressingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
245 245
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
                 "email": "[email protected]"
260 260
             }
261 261
         }
262
-EOT;
262
+eot;
263 263
 
264 264
         $this->client->request('PUT', $this->getAddressingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $newData);
265 265
 
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
                 "email": "[email protected]"
296 296
             }
297 297
         }
298
-EOT;
298
+eot;
299 299
 
300 300
         $this->client->request('PUT', $this->getAddressingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $addressData);
301 301
 
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
                 "email": "[email protected]"
318 318
             }
319 319
         }
320
-EOT;
320
+eot;
321 321
 
322 322
         $this->client->request('PUT', $this->getAddressingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $newAddressData);
323 323
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
                 "email": "[email protected]"
354 354
             }
355 355
         }
356
-EOT;
356
+eot;
357 357
 
358 358
         $this->client->request('PUT', $this->getAddressingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $addressData);
359 359
 
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
                 "email": "[email protected]"
377 377
             }
378 378
         }
379
-EOT;
379
+eot;
380 380
 
381 381
         $this->client->request('PUT', $this->getAddressingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $newAddressData);
382 382
 
Please login to merge, or discard this patch.
tests/Controller/CheckoutShippingApiTest.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 }
143 143
             ]
144 144
         }
145
-EOT;
145
+eot;
146 146
 
147 147
         $this->client->request('PUT', $this->getSelectShippingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
148 148
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                 }
178 178
             ]
179 179
         }
180
-EOT;
180
+eot;
181 181
 
182 182
         $this->client->request('PUT', $this->getSelectShippingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
183 183
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
                 }
219 219
             ]
220 220
         }
221
-EOT;
221
+eot;
222 222
 
223 223
         $this->client->request('PUT', $this->getSelectShippingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
224 224
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
                 }
256 256
             ]
257 257
         }
258
-EOT;
258
+eot;
259 259
 
260 260
         $this->client->request('PUT', $this->getSelectShippingUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data);
261 261
 
Please login to merge, or discard this patch.
tests/Controller/CheckoutApiTestCase.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 "email": "[email protected]"
69 69
             }
70 70
         }
71
-EOT;
71
+eot;
72 72
 
73 73
         $url = sprintf('/api/v1/checkouts/addressing/%d', $order->getId());
74 74
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                 }
96 96
             ]
97 97
         }
98
-EOT;
98
+eot;
99 99
 
100 100
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
101 101
     }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                 }
122 122
             ]
123 123
         }
124
-EOT;
124
+eot;
125 125
 
126 126
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
127 127
     }
Please login to merge, or discard this patch.
Bundle/ApiBundle/Controller/ShowAvailablePaymentMethodsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
      */
128 128
     private function getPaymentMethods(PaymentInterface $payment, $locale)
129 129
     {
130
-        $paymentMethods =  $this->paymentMethodResolver->getSupportedMethods($payment);
130
+        $paymentMethods = $this->paymentMethodResolver->getSupportedMethods($payment);
131 131
 
132 132
         $rawPaymentMethods = [];
133 133
 
Please login to merge, or discard this patch.