@@ -85,11 +85,11 @@ |
||
85 | 85 | { |
86 | 86 | if ($configuration->isHeaderRedirection()) { |
87 | 87 | return new Response('', 200, [ |
88 | - 'X-SYLIUS-LOCATION' => $url.$configuration->getRedirectHash(), |
|
88 | + 'X-SYLIUS-LOCATION' => $url . $configuration->getRedirectHash(), |
|
89 | 89 | ]); |
90 | 90 | } |
91 | 91 | |
92 | - return new RedirectResponse($url.$configuration->getRedirectHash(), $status); |
|
92 | + return new RedirectResponse($url . $configuration->getRedirectHash(), $status); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -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 | } |
@@ -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 |