@@ -58,7 +58,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -61,7 +61,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -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 | |
@@ -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 | } |