@@ -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 | |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | $objects = $this->loadFixturesFromFile('books.yml'); |
| 77 | 77 | |
| 78 | 78 | $data = |
| 79 | - <<<EOT |
|
| 79 | + <<<EOT |
|
| 80 | 80 | { |
| 81 | 81 | "author": "Christie Golden" |
| 82 | 82 | } |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | $objects = $this->loadFixturesFromFile('comic_books.yml'); |
| 86 | 86 | |
| 87 | 87 | $data = |
| 88 | - <<<EOT |
|
| 88 | + <<<EOT |
|
| 89 | 89 | { |
| 90 | 90 | "authorFirstName": "Joe", |
| 91 | 91 | "authorLastName": "Kelly" |
@@ -39,8 +39,8 @@ |
||
| 39 | 39 | public function getFunctions(): array |
| 40 | 40 | { |
| 41 | 41 | return [ |
| 42 | - new \Twig_Function('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 43 | - new \Twig_Function('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 42 | + new \Twig_Function('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 43 | + new \Twig_Function('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 44 | 44 | ]; |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | 'translation' => [ |
| 41 | 41 | 'classes' => [ |
| 42 | 42 | 'model' => BookTranslation::class, |
| 43 | - ], |
|
| 43 | + ], |
|
| 44 | 44 | ], |
| 45 | 45 | ], |
| 46 | 46 | ], |
@@ -77,10 +77,10 @@ discard block |
||
| 77 | 77 | $this->setParameter('kernel.bundles', []); |
| 78 | 78 | |
| 79 | 79 | $this->load([ |
| 80 | - 'translation' => [ |
|
| 81 | - 'locale_provider' => 'test.custom_locale_provider', |
|
| 82 | - ], |
|
| 83 | - ]); |
|
| 80 | + 'translation' => [ |
|
| 81 | + 'locale_provider' => 'test.custom_locale_provider', |
|
| 82 | + ], |
|
| 83 | + ]); |
|
| 84 | 84 | |
| 85 | 85 | $this->assertContainerBuilderHasAlias('sylius.translation_locale_provider', 'test.custom_locale_provider'); |
| 86 | 86 | } |
@@ -15,7 +15,8 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function it_does_not_crash(): void |
| 17 | 17 | { |
| 18 | - new class() extends Bundle { |
|
| 18 | + new class() extends Bundle |
|
| 19 | + { |
|
| 19 | 20 | use SyliusPluginTrait; |
| 20 | 21 | }; |
| 21 | 22 | } |
@@ -46,8 +46,8 @@ |
||
| 46 | 46 | StateMachineInterface $secondOrderStateMachine |
| 47 | 47 | ): void { |
| 48 | 48 | $orderRepository->findOrdersUnpaidSince(Argument::type(\DateTimeInterface::class))->willReturn([ |
| 49 | - $firstOrder, |
|
| 50 | - $secondOrder, |
|
| 49 | + $firstOrder, |
|
| 50 | + $secondOrder, |
|
| 51 | 51 | ]); |
| 52 | 52 | |
| 53 | 53 | $stateMachineFactory->get($firstOrder, 'sylius_order')->willReturn($firstOrderStateMachine); |
@@ -1446,7 +1446,7 @@ |
||
| 1446 | 1446 | ], |
| 1447 | 1447 | ]; |
| 1448 | 1448 | $routeFactory->createRoute('/products/{id}', $deleteDefaults, [], [], '', [], ['DELETE']) |
| 1449 | - ->willReturn($deleteRoute); |
|
| 1449 | + ->willReturn($deleteRoute); |
|
| 1450 | 1450 | $routeCollection->add('sylius_product_delete', $deleteRoute)->shouldBeCalled(); |
| 1451 | 1451 | |
| 1452 | 1452 | $this->load($configuration, 'sylius.resource')->shouldReturn($routeCollection); |
@@ -87,10 +87,10 @@ |
||
| 87 | 87 | if (isset($sorting['price'])) { |
| 88 | 88 | // Another hack, the subquery to get the first position variant |
| 89 | 89 | $subQuery = $this->createQueryBuilder('m') |
| 90 | - ->select('min(v.position)') |
|
| 91 | - ->innerJoin('m.variants', 'v') |
|
| 92 | - ->andWhere('m.id = :product_id') |
|
| 93 | - ; |
|
| 90 | + ->select('min(v.position)') |
|
| 91 | + ->innerJoin('m.variants', 'v') |
|
| 92 | + ->andWhere('m.id = :product_id') |
|
| 93 | + ; |
|
| 94 | 94 | |
| 95 | 95 | $queryBuilder |
| 96 | 96 | ->innerJoin('o.variants', 'variant') |