@@ -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') |
@@ -414,7 +414,7 @@ |
||
| 414 | 414 | { |
| 415 | 415 | return trim(array_reduce( |
| 416 | 416 | $variant->getOptionValues()->toArray(), |
| 417 | - static function(?string $variantName, ProductOptionValueInterface $variantOption) { |
|
| 417 | + static function (?string $variantName, ProductOptionValueInterface $variantOption) { |
|
| 418 | 418 | return $variantName . sprintf('%s ', $variantOption->getValue()); |
| 419 | 419 | }, |
| 420 | 420 | '' |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | function it_generates_random_hashed_path_for_the_image(ImageInterface $image): void |
| 29 | 29 | { |
| 30 | - $file = new UploadedFile(__DIR__.'/ford.jpg', 'ford.jpg', null, null, true); |
|
| 30 | + $file = new UploadedFile(__DIR__ . '/ford.jpg', 'ford.jpg', null, null, true); |
|
| 31 | 31 | |
| 32 | 32 | $image->getFile()->willReturn($file); |
| 33 | 33 | |
@@ -153,7 +153,7 @@ |
||
| 153 | 153 | /** |
| 154 | 154 | * @Then /^I should see payment for (the "[^"]+" order) as (\d+)(?:|st|nd|rd|th) in the list$/ |
| 155 | 155 | */ |
| 156 | - public function iShouldSeePaymentForTheOrderInTheList(string $orderNumber,int $position): void |
|
| 156 | + public function iShouldSeePaymentForTheOrderInTheList(string $orderNumber, int $position): void |
|
| 157 | 157 | { |
| 158 | 158 | Assert::true($this->indexPage->isPaymentWithOrderNumberInPosition($orderNumber, $position)); |
| 159 | 159 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | function it_generates_random_hashed_path_keeping_the_image_name(ImageInterface $image): void |
| 29 | 29 | { |
| 30 | - $file = new UploadedFile(__DIR__.'/ford.jpg', 'ford.jpg', null, null, true); |
|
| 30 | + $file = new UploadedFile(__DIR__ . '/ford.jpg', 'ford.jpg', null, null, true); |
|
| 31 | 31 | |
| 32 | 32 | $image->getFile()->willReturn($file); |
| 33 | 33 | |