@@ -26,12 +26,12 @@ |
||
| 26 | 26 | require ini_get('auto_prepend_file'); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | -if (is_file($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.$_SERVER['SCRIPT_NAME'])) { |
|
| 29 | +if (is_file($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $_SERVER['SCRIPT_NAME'])) { |
|
| 30 | 30 | return false; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | $_SERVER = array_merge($_SERVER, $_ENV); |
| 34 | -$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.'app_test_cached.php'; |
|
| 34 | +$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'app_test_cached.php'; |
|
| 35 | 35 | |
| 36 | 36 | require 'app_test_cached.php'; |
| 37 | 37 | |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 46 | 46 | { |
| 47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
| 47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | EOT; |
| 65 | 65 | |
| 66 | - $this->client->request('PUT', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
| 66 | + $this->client->request('PUT', '/books/' . $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
| 67 | 67 | $response = $this->client->getResponse(); |
| 68 | 68 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 69 | 69 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | EOT; |
| 84 | 84 | |
| 85 | - $this->client->request('PATCH', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
| 85 | + $this->client->request('PATCH', '/books/' . $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
| 86 | 86 | $response = $this->client->getResponse(); |
| 87 | 87 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 88 | 88 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | { |
| 95 | 95 | $objects = $this->loadFixturesFromFile('books.yml'); |
| 96 | 96 | |
| 97 | - $this->client->request('DELETE', '/books/'. $objects["book1"]->getId()); |
|
| 97 | + $this->client->request('DELETE', '/books/' . $objects["book1"]->getId()); |
|
| 98 | 98 | $response = $this->client->getResponse(); |
| 99 | 99 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 100 | 100 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $objects = $this->loadFixturesFromFile('books.yml'); |
| 108 | 108 | |
| 109 | - $this->client->request('GET', '/books/'. $objects["book1"]->getId()); |
|
| 109 | + $this->client->request('GET', '/books/' . $objects["book1"]->getId()); |
|
| 110 | 110 | $response = $this->client->getResponse(); |
| 111 | 111 | $this->assertResponse($response, 'books/show_response'); |
| 112 | 112 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | SessionInterface $session, |
| 46 | 46 | OrderRepositoryInterface $orderRepository, |
| 47 | 47 | OrderInterface $cart |
| 48 | - ) { |
|
| 48 | + ) { |
|
| 49 | 49 | $session->has('session_key_name')->willReturn(true); |
| 50 | 50 | $session->get('session_key_name')->willReturn(12345); |
| 51 | 51 | $orderRepository->findCartById(12345)->willReturn($cart); |
@@ -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 spec\Sylius\Bundle\OrderBundle\Context; |
| 15 | 15 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | SessionInterface $session, |
| 46 | 46 | OrderRepositoryInterface $orderRepository, |
| 47 | 47 | OrderInterface $cart |
| 48 | - ) { |
|
| 48 | + ) { |
|
| 49 | 49 | $session->has('session_key_name')->willReturn(true); |
| 50 | 50 | $session->get('session_key_name')->willReturn(12345); |
| 51 | 51 | $orderRepository->findCartById(12345)->willReturn($cart); |
@@ -24,7 +24,8 @@ |
||
| 24 | 24 | |
| 25 | 25 | final class UniqueSimpleProductCodeValidatorSpec extends ObjectBehavior |
| 26 | 26 | { |
| 27 | - function let(ExecutionContextInterface $context, ProductVariantRepositoryInterface $productVariantRepository) { |
|
| 27 | + function let(ExecutionContextInterface $context, ProductVariantRepositoryInterface $productVariantRepository) |
|
| 28 | + { |
|
| 28 | 29 | $this->beConstructedWith($productVariantRepository); |
| 29 | 30 | $this->initialize($context); |
| 30 | 31 | } |
@@ -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 spec\Sylius\Bundle\ProductBundle\Validator; |
| 15 | 15 | |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 46 | 46 | { |
| 47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
| 47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -47,7 +47,8 @@ |
||
| 47 | 47 | { |
| 48 | 48 | $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) { |
| 49 | 49 | return function (FormInterface $form) use ($validationGroups) { |
| 50 | - if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent |
|
| 50 | + if ((bool) $form->get('promotionCoupon')->getNormData()) { |
|
| 51 | +// Validate the coupon if it was sent |
|
| 51 | 52 | $validationGroups[] = 'sylius_promotion_coupon'; |
| 52 | 53 | } |
| 53 | 54 | |
@@ -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\Bundle\CoreBundle\Form\Extension; |
| 15 | 15 | |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 46 | 46 | { |
| 47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
| 47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 46 | 46 | { |
| 47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
| 47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |