@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Tests\Controller; |
| 15 | 15 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $this->addItemToCart($cartId); |
| 60 | 60 | $this->addressOrder($cartId); |
| 61 | 61 | |
| 62 | - $this->client->request('PATCH', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType); |
|
| 62 | + $this->client->request('PATCH', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType); |
|
| 63 | 63 | |
| 64 | 64 | $response = $this->client->getResponse(); |
| 65 | 65 | $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($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 92 | + $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 93 | 93 | |
| 94 | 94 | $response = $this->client->getResponse(); |
| 95 | 95 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Tests\Controller; |
| 15 | 15 | |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 190 | 190 | $customers = $this->loadFixturesFromFile('resources/customers.yml'); |
| 191 | 191 | |
| 192 | - $this->client->request('GET', '/api/v1/customers/'.$customers['customer_Barry']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 192 | + $this->client->request('GET', '/api/v1/customers/' . $customers['customer_Barry']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 193 | 193 | |
| 194 | 194 | $response = $this->client->getResponse(); |
| 195 | 195 | $this->assertResponse($response, 'customer/show_response', Response::HTTP_OK); |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 204 | 204 | $customers = $this->loadFixturesFromFile('resources/customers.yml'); |
| 205 | 205 | |
| 206 | - $this->client->request('GET', '/api/v1/customers/'.$customers['customer_Roy']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 206 | + $this->client->request('GET', '/api/v1/customers/' . $customers['customer_Roy']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 207 | 207 | |
| 208 | 208 | $response = $this->client->getResponse(); |
| 209 | 209 | $this->assertResponse($response, 'customer/show_with_user_response', Response::HTTP_OK); |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 242 | 242 | $customers = $this->loadFixturesFromFile('resources/customers.yml'); |
| 243 | 243 | |
| 244 | - $this->client->request('PUT', '/api/v1/customers/'.$customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
| 244 | + $this->client->request('PUT', '/api/v1/customers/' . $customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
| 245 | 245 | |
| 246 | 246 | $response = $this->client->getResponse(); |
| 247 | 247 | $this->assertResponse($response, 'customer/update_validation_fail_response', Response::HTTP_BAD_REQUEST); |
@@ -265,12 +265,12 @@ discard block |
||
| 265 | 265 | } |
| 266 | 266 | EOT; |
| 267 | 267 | |
| 268 | - $this->client->request('PUT', '/api/v1/customers/'.$customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 268 | + $this->client->request('PUT', '/api/v1/customers/' . $customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 269 | 269 | |
| 270 | 270 | $response = $this->client->getResponse(); |
| 271 | 271 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 272 | 272 | |
| 273 | - $this->client->request('GET', '/api/v1/customers/'.$customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 273 | + $this->client->request('GET', '/api/v1/customers/' . $customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 274 | 274 | |
| 275 | 275 | $response = $this->client->getResponse(); |
| 276 | 276 | $this->assertResponse($response, 'customer/update_response', Response::HTTP_OK); |
@@ -305,12 +305,12 @@ discard block |
||
| 305 | 305 | } |
| 306 | 306 | EOT; |
| 307 | 307 | |
| 308 | - $this->client->request('PATCH', '/api/v1/customers/'.$customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 308 | + $this->client->request('PATCH', '/api/v1/customers/' . $customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 309 | 309 | |
| 310 | 310 | $response = $this->client->getResponse(); |
| 311 | 311 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 312 | 312 | |
| 313 | - $this->client->request('GET', '/api/v1/customers/'.$customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 313 | + $this->client->request('GET', '/api/v1/customers/' . $customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 314 | 314 | |
| 315 | 315 | $response = $this->client->getResponse(); |
| 316 | 316 | $this->assertResponse($response, 'customer/partial_update_response', Response::HTTP_OK); |
@@ -348,12 +348,12 @@ discard block |
||
| 348 | 348 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 349 | 349 | $customers = $this->loadFixturesFromFile('resources/customers.yml'); |
| 350 | 350 | |
| 351 | - $this->client->request('DELETE', '/api/v1/customers/'.$customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
| 351 | + $this->client->request('DELETE', '/api/v1/customers/' . $customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
| 352 | 352 | |
| 353 | 353 | $response = $this->client->getResponse(); |
| 354 | 354 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 355 | 355 | |
| 356 | - $this->client->request('GET', '/api/v1/customers/'.$customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 356 | + $this->client->request('GET', '/api/v1/customers/' . $customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 357 | 357 | |
| 358 | 358 | $response = $this->client->getResponse(); |
| 359 | 359 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Tests\Controller; |
| 15 | 15 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 74 | 74 | $locales = $this->loadFixturesFromFile('resources/locales.yml'); |
| 75 | 75 | |
| 76 | - $this->client->request('GET', '/api/v1/locales/'.$locales['locale_en_US']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 76 | + $this->client->request('GET', '/api/v1/locales/' . $locales['locale_en_US']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 77 | 77 | |
| 78 | 78 | $response = $this->client->getResponse(); |
| 79 | 79 | $this->assertResponse($response, 'locale/show_response', Response::HTTP_OK); |
@@ -158,12 +158,12 @@ discard block |
||
| 158 | 158 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 159 | 159 | $locales = $this->loadFixturesFromFile('resources/locales.yml'); |
| 160 | 160 | |
| 161 | - $this->client->request('DELETE', '/api/v1/locales/'.$locales['locale_en_US']->getCode(), [], [], static::$authorizedHeaderWithContentType, []); |
|
| 161 | + $this->client->request('DELETE', '/api/v1/locales/' . $locales['locale_en_US']->getCode(), [], [], static::$authorizedHeaderWithContentType, []); |
|
| 162 | 162 | |
| 163 | 163 | $response = $this->client->getResponse(); |
| 164 | 164 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 165 | 165 | |
| 166 | - $this->client->request('GET', '/api/v1/locales/'.$locales['locale_en_US']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 166 | + $this->client->request('GET', '/api/v1/locales/' . $locales['locale_en_US']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 167 | 167 | |
| 168 | 168 | $response = $this->client->getResponse(); |
| 169 | 169 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Tests\Controller; |
| 15 | 15 | |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | $this->addItemToCart($cartId); |
| 111 | 111 | |
| 112 | - $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}'); |
|
| 112 | + $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}'); |
|
| 113 | 113 | |
| 114 | 114 | $this->addressOrder($cartId); |
| 115 | 115 | $this->selectOrderShippingMethod($cartId); |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Tests\Controller; |
| 15 | 15 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 49 | 49 | $countryData = $this->loadFixturesFromFile('resources/countries.yml'); |
| 50 | 50 | |
| 51 | - $this->client->request('GET', '/api/v1/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 51 | + $this->client->request('GET', '/api/v1/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 52 | 52 | |
| 53 | 53 | $response = $this->client->getResponse(); |
| 54 | 54 | $this->assertResponse($response, 'province/show_response', Response::HTTP_OK); |
@@ -62,12 +62,12 @@ discard block |
||
| 62 | 62 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 63 | 63 | $countryData = $this->loadFixturesFromFile('resources/countries.yml'); |
| 64 | 64 | |
| 65 | - $this->client->request('DELETE', '/api/v1/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 65 | + $this->client->request('DELETE', '/api/v1/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 66 | 66 | |
| 67 | 67 | $response = $this->client->getResponse(); |
| 68 | 68 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 69 | 69 | |
| 70 | - $this->client->request('GET', '/api/v1/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 70 | + $this->client->request('GET', '/api/v1/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 71 | 71 | |
| 72 | 72 | $response = $this->client->getResponse(); |
| 73 | 73 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Tests\Controller; |
| 15 | 15 | |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | { |
| 185 | 185 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 186 | 186 | $taxCategories = $this->loadFixturesFromFile('resources/tax_categories.yml'); |
| 187 | - $taxCategory = $taxCategories['tax_category_1']; |
|
| 187 | + $taxCategory = $taxCategories['tax_category_1']; |
|
| 188 | 188 | |
| 189 | 189 | $this->client->request('GET', $this->getTaxCategoryUrl($taxCategory), [], [], [ |
| 190 | 190 | 'HTTP_Authorization' => 'Bearer SampleTokenNjZkNjY2MDEwMTAzMDkxMGE0OTlhYzU3NzYyMTE0ZGQ3ODcyMDAwM2EwMDZjNDI5NDlhMDdlMQ', |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\CoreBundle\Application\Kernel; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Behat\Page\Shop\ProductReview; |
| 15 | 15 | |