@@ -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') |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | public function getFunctions(): array |
| 34 | 34 | { |
| 35 | 35 | return [ |
| 36 | - new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 37 | - new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 36 | + new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 37 | + new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 38 | 38 | ]; |
| 39 | 39 | } |
| 40 | 40 | } |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | |
| 100 | 100 | public static function findBy(RepositoryInterface $repository, string $field): \Closure |
| 101 | 101 | { |
| 102 | - return function (Options $options, ?array $previousValues) use ($repository, $field): ?iterable { |
|
| 102 | + return function (Options $options, ?array $previousValues) use ($repository, $field) : ?iterable { |
|
| 103 | 103 | if (null === $previousValues || [] === $previousValues) { |
| 104 | 104 | return $previousValues; |
| 105 | 105 | } |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | |
| 91 | 91 | public function getTaxTotal(): string; |
| 92 | 92 | |
| 93 | - public function getShippingTotal(): string ; |
|
| 93 | + public function getShippingTotal(): string; |
|
| 94 | 94 | |
| 95 | 95 | public function hasShippingTotal(): bool; |
| 96 | 96 | |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | 'label' => 'sylius.form.channel.color', |
| 52 | 52 | 'required' => false, |
| 53 | 53 | ]) |
| 54 | - ->add('type', ChoiceType::class,[ |
|
| 54 | + ->add('type', ChoiceType::class, [ |
|
| 55 | 55 | 'label' => 'sylius.form.channel.type', |
| 56 | 56 | 'required' => false, |
| 57 | 57 | 'choices' => [ |