@@ -127,7 +127,7 @@ |
||
| 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 | |
@@ -136,7 +136,7 @@ |
||
| 136 | 136 | */ |
| 137 | 137 | private function getCalculatedShippingMethods(ShipmentInterface $shipment, $locale) |
| 138 | 138 | { |
| 139 | - $shippingMethods = $this->shippingMethodsResolver->getSupportedMethods($shipment); |
|
| 139 | + $shippingMethods = $this->shippingMethodsResolver->getSupportedMethods($shipment); |
|
| 140 | 140 | |
| 141 | 141 | $rawShippingMethods = []; |
| 142 | 142 | |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | |
| 64 | 64 | public function remove() |
| 65 | 65 | { |
| 66 | - $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-'.$this->expirationPeriod)); |
|
| 66 | + $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-' . $this->expirationPeriod)); |
|
| 67 | 67 | |
| 68 | 68 | $this->eventDispatcher->dispatch(SyliusExpiredCartsEvents::PRE_REMOVE, new GenericEvent($expiredCarts)); |
| 69 | 69 | |
@@ -30,10 +30,10 @@ |
||
| 30 | 30 | |
| 31 | 31 | $builder |
| 32 | 32 | ->add('firstName', TextType::class, [ |
| 33 | - 'label' => 'sylius.form.user.first_name', |
|
| 33 | + 'label' => 'sylius.form.user.first_name', |
|
| 34 | 34 | ]) |
| 35 | 35 | ->add('lastName', TextType::class, [ |
| 36 | - 'label' => 'sylius.form.user.last_name', |
|
| 36 | + 'label' => 'sylius.form.user.last_name', |
|
| 37 | 37 | ]) |
| 38 | 38 | ->add('localeCode', LocaleType::class, [ |
| 39 | 39 | 'label' => 'sylius.ui.locale', |
@@ -305,7 +305,7 @@ |
||
| 305 | 305 | do { |
| 306 | 306 | parent::tryToOpen($urlParameters); |
| 307 | 307 | sleep(3); |
| 308 | - } while(!$this->isOpen() && microtime(true) < $end); |
|
| 308 | + } while (!$this->isOpen() && microtime(true) < $end); |
|
| 309 | 309 | |
| 310 | 310 | return; |
| 311 | 311 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $taxons = $this->loadFixturesFromFile('resources/taxons.yml'); |
| 85 | 85 | $taxon = $taxons['women']; |
| 86 | 86 | |
| 87 | - $this->client->request('GET', '/api/v1/taxons/'.$taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 87 | + $this->client->request('GET', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 88 | 88 | |
| 89 | 89 | $response = $this->client->getResponse(); |
| 90 | 90 | $this->assertResponse($response, 'taxon/show_response', Response::HTTP_OK); |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $taxons = $this->loadFixturesFromFile('resources/taxons.yml'); |
| 100 | 100 | $taxon = $taxons['category']; |
| 101 | 101 | |
| 102 | - $this->client->request('GET', '/api/v1/taxons/'.$taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 102 | + $this->client->request('GET', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 103 | 103 | |
| 104 | 104 | $response = $this->client->getResponse(); |
| 105 | 105 | $this->assertResponse($response, 'taxon/show_root_response', Response::HTTP_OK); |
@@ -127,12 +127,12 @@ discard block |
||
| 127 | 127 | $taxons = $this->loadFixturesFromFile('resources/taxons.yml'); |
| 128 | 128 | $taxon = $taxons['men']; |
| 129 | 129 | |
| 130 | - $this->client->request('DELETE', '/api/v1/taxons/'.$taxon->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
| 130 | + $this->client->request('DELETE', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
| 131 | 131 | |
| 132 | 132 | $response = $this->client->getResponse(); |
| 133 | 133 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 134 | 134 | |
| 135 | - $this->client->request('GET', '/api/v1/taxons/'.$taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 135 | + $this->client->request('GET', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 136 | 136 | |
| 137 | 137 | $response = $this->client->getResponse(); |
| 138 | 138 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -147,12 +147,12 @@ discard block |
||
| 147 | 147 | $taxons = $this->loadFixturesFromFile('resources/taxons.yml'); |
| 148 | 148 | $taxon = $taxons['category']; |
| 149 | 149 | |
| 150 | - $this->client->request('DELETE', '/api/v1/taxons/'.$taxon->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
| 150 | + $this->client->request('DELETE', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
| 151 | 151 | |
| 152 | 152 | $response = $this->client->getResponse(); |
| 153 | 153 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 154 | 154 | |
| 155 | - $this->client->request('GET', '/api/v1/taxons/'.$taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 155 | + $this->client->request('GET', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 156 | 156 | |
| 157 | 157 | $response = $this->client->getResponse(); |
| 158 | 158 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | "parent": "books" |
| 334 | 334 | } |
| 335 | 335 | EOT; |
| 336 | - $this->client->request('PUT', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 336 | + $this->client->request('PUT', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 337 | 337 | $response = $this->client->getResponse(); |
| 338 | 338 | |
| 339 | 339 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | } |
| 361 | 361 | } |
| 362 | 362 | EOT; |
| 363 | - $this->client->request('PUT', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 363 | + $this->client->request('PUT', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 364 | 364 | $response = $this->client->getResponse(); |
| 365 | 365 | |
| 366 | 366 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | } |
| 388 | 388 | } |
| 389 | 389 | EOT; |
| 390 | - $this->client->request('PATCH', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 390 | + $this->client->request('PATCH', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 391 | 391 | $response = $this->client->getResponse(); |
| 392 | 392 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 393 | 393 | } |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | } |
| 414 | 414 | } |
| 415 | 415 | EOT; |
| 416 | - $this->client->request('PATCH', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 416 | + $this->client->request('PATCH', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 417 | 417 | $response = $this->client->getResponse(); |
| 418 | 418 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 419 | 419 | } |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | } |
| 182 | 182 | } |
| 183 | 183 | } |
| 184 | -EOT; |
|
| 184 | +eot; |
|
| 185 | 185 | |
| 186 | 186 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 187 | 187 | |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | { |
| 202 | 202 | "code": "fluffy_pets" |
| 203 | 203 | } |
| 204 | -EOT; |
|
| 204 | +eot; |
|
| 205 | 205 | |
| 206 | 206 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 207 | 207 | |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | } |
| 235 | 235 | } |
| 236 | 236 | } |
| 237 | -EOT; |
|
| 237 | +eot; |
|
| 238 | 238 | |
| 239 | 239 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 240 | 240 | |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | "code": "horror", |
| 258 | 258 | "parent": "books" |
| 259 | 259 | } |
| 260 | -EOT; |
|
| 260 | +eot; |
|
| 261 | 261 | |
| 262 | 262 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 263 | 263 | |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | } |
| 299 | 299 | ] |
| 300 | 300 | } |
| 301 | -EOT; |
|
| 301 | +eot; |
|
| 302 | 302 | |
| 303 | 303 | $this->client->request('POST', '/api/v1/taxons/', [], [ |
| 304 | 304 | 'images' => [ |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | }, |
| 333 | 333 | "parent": "books" |
| 334 | 334 | } |
| 335 | -EOT; |
|
| 335 | +eot; |
|
| 336 | 336 | $this->client->request('PUT', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
| 337 | 337 | $response = $this->client->getResponse(); |
| 338 | 338 | |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | } |
| 360 | 360 | } |
| 361 | 361 | } |
| 362 | -EOT; |
|
| 362 | +eot; |
|
| 363 | 363 | $this->client->request('PUT', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
| 364 | 364 | $response = $this->client->getResponse(); |
| 365 | 365 | |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | } |
| 387 | 387 | } |
| 388 | 388 | } |
| 389 | -EOT; |
|
| 389 | +eot; |
|
| 390 | 390 | $this->client->request('PATCH', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
| 391 | 391 | $response = $this->client->getResponse(); |
| 392 | 392 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | } |
| 413 | 413 | } |
| 414 | 414 | } |
| 415 | -EOT; |
|
| 415 | +eot; |
|
| 416 | 416 | $this->client->request('PATCH', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
| 417 | 417 | $response = $this->client->getResponse(); |
| 418 | 418 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | "channel": "CHANNEL", |
| 50 | 50 | "locale_code": "en_US" |
| 51 | 51 | } |
| 52 | -EOT; |
|
| 52 | +eot; |
|
| 53 | 53 | |
| 54 | 54 | $this->client->request('POST', '/api/v1/carts/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 55 | 55 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | "variant": "MUG_SW", |
| 73 | 73 | "quantity": 1 |
| 74 | 74 | } |
| 75 | -EOT; |
|
| 75 | +eot; |
|
| 76 | 76 | |
| 77 | 77 | $this->client->request('POST', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
| 78 | 78 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | }, |
| 106 | 106 | "different_billing_address": true |
| 107 | 107 | } |
| 108 | -EOT; |
|
| 108 | +eot; |
|
| 109 | 109 | |
| 110 | 110 | $url = sprintf('/api/v1/checkouts/addressing/%d', $cartId); |
| 111 | 111 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | } |
| 133 | 133 | ] |
| 134 | 134 | } |
| 135 | -EOT; |
|
| 135 | +eot; |
|
| 136 | 136 | |
| 137 | 137 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
| 138 | 138 | } |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | ] |
| 160 | 160 | } |
| 161 | -EOT; |
|
| 161 | +eot; |
|
| 162 | 162 | |
| 163 | 163 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
| 164 | 164 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | { |
| 62 | 62 | "different_billing_address": false |
| 63 | 63 | } |
| 64 | -EOT; |
|
| 64 | +eot; |
|
| 65 | 65 | |
| 66 | 66 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 67 | 67 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | }, |
| 95 | 95 | "different_billing_address": false |
| 96 | 96 | } |
| 97 | -EOT; |
|
| 97 | +eot; |
|
| 98 | 98 | |
| 99 | 99 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 100 | 100 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | }, |
| 129 | 129 | "different_billing_address": true |
| 130 | 130 | } |
| 131 | -EOT; |
|
| 131 | +eot; |
|
| 132 | 132 | |
| 133 | 133 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 134 | 134 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | }, |
| 170 | 170 | "different_billing_address": true |
| 171 | 171 | } |
| 172 | -EOT; |
|
| 172 | +eot; |
|
| 173 | 173 | |
| 174 | 174 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 175 | 175 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | }, |
| 208 | 208 | "different_billing_address": false |
| 209 | 209 | } |
| 210 | -EOT; |
|
| 210 | +eot; |
|
| 211 | 211 | |
| 212 | 212 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 213 | 213 | |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | }, |
| 225 | 225 | "different_billing_address": false |
| 226 | 226 | } |
| 227 | -EOT; |
|
| 227 | +eot; |
|
| 228 | 228 | |
| 229 | 229 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $newData); |
| 230 | 230 | |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | }, |
| 258 | 258 | "different_billing_address": false |
| 259 | 259 | } |
| 260 | -EOT; |
|
| 260 | +eot; |
|
| 261 | 261 | |
| 262 | 262 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $addressData); |
| 263 | 263 | |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | }, |
| 277 | 277 | "different_billing_address": false |
| 278 | 278 | } |
| 279 | -EOT; |
|
| 279 | +eot; |
|
| 280 | 280 | |
| 281 | 281 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $newAddressData); |
| 282 | 282 | |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | }, |
| 310 | 310 | "different_billing_address": false |
| 311 | 311 | } |
| 312 | -EOT; |
|
| 312 | +eot; |
|
| 313 | 313 | |
| 314 | 314 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $addressData); |
| 315 | 315 | |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | }, |
| 330 | 330 | "different_billing_address": false |
| 331 | 331 | } |
| 332 | -EOT; |
|
| 332 | +eot; |
|
| 333 | 333 | |
| 334 | 334 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $newAddressData); |
| 335 | 335 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $this->addItemToCart($cartId); |
| 58 | 58 | $this->addressOrder($cartId); |
| 59 | 59 | |
| 60 | - $this->client->request('PATCH', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType); |
|
| 60 | + $this->client->request('PATCH', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType); |
|
| 61 | 61 | |
| 62 | 62 | $response = $this->client->getResponse(); |
| 63 | 63 | $this->assertResponse($response, 'checkout/payment_invalid_order_state', Response::HTTP_INTERNAL_SERVER_ERROR); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | } |
| 88 | 88 | EOT; |
| 89 | 89 | |
| 90 | - $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 90 | + $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 91 | 91 | |
| 92 | 92 | $response = $this->client->getResponse(); |
| 93 | 93 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | ] |
| 87 | 87 | } |
| 88 | -EOT; |
|
| 88 | +eot; |
|
| 89 | 89 | |
| 90 | 90 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 91 | 91 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | } |
| 176 | 176 | ] |
| 177 | 177 | } |
| 178 | -EOT; |
|
| 178 | +eot; |
|
| 179 | 179 | |
| 180 | 180 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 181 | 181 | |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | } |
| 217 | 217 | ] |
| 218 | 218 | } |
| 219 | -EOT; |
|
| 219 | +eot; |
|
| 220 | 220 | |
| 221 | 221 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 222 | 222 | |