@@ -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 | } |
@@ -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); |
@@ -105,10 +105,10 @@ |
||
105 | 105 | if (isset($sorting['price'])) { |
106 | 106 | // Another hack, the subquery to get the first position variant |
107 | 107 | $subQuery = $this->createQueryBuilder('m') |
108 | - ->select('min(v.position)') |
|
109 | - ->innerJoin('m.variants', 'v') |
|
110 | - ->andWhere('m.id = :product_id') |
|
111 | - ; |
|
108 | + ->select('min(v.position)') |
|
109 | + ->innerJoin('m.variants', 'v') |
|
110 | + ->andWhere('m.id = :product_id') |
|
111 | + ; |
|
112 | 112 | |
113 | 113 | $queryBuilder |
114 | 114 | ->addSelect('variant') |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function it_returns_tax_scopes_when_zone_scope_set_to_tax() |
109 | 109 | { |
110 | - $this->zoneRepository->findBy([ 'scope' => ['tax', AddressingScope::ALL]])->willReturn([ |
|
110 | + $this->zoneRepository->findBy(['scope' => ['tax', AddressingScope::ALL]])->willReturn([ |
|
111 | 111 | $this->zoneAllScopes->reveal(), |
112 | 112 | $this->zoneTaxScope->reveal(), |
113 | 113 | ]); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function it_returns_shipping_scopes_when_zone_scope_set_to_shipping() |
122 | 122 | { |
123 | - $this->zoneRepository->findBy([ 'scope' => ['shipping', AddressingScope::ALL]])->willReturn([ |
|
123 | + $this->zoneRepository->findBy(['scope' => ['shipping', AddressingScope::ALL]])->willReturn([ |
|
124 | 124 | $this->zoneAllScopes->reveal(), |
125 | 125 | $this->zoneShippingScope->reveal(), |
126 | 126 | ]); |