@@ -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 | } |
@@ -162,11 +162,11 @@ |
||
| 162 | 162 | */ |
| 163 | 163 | public function thisProductReviewShouldNoLongerExistInTheRegistry(): void |
| 164 | 164 | { |
| 165 | - $id = (string) $this->sharedStorage->get('product_review_id'); |
|
| 166 | - Assert::false( |
|
| 167 | - $this->isItemOnIndex('id', $id), |
|
| 168 | - sprintf('Product review with id %s exist', $id) |
|
| 169 | - ); |
|
| 165 | + $id = (string) $this->sharedStorage->get('product_review_id'); |
|
| 166 | + Assert::false( |
|
| 167 | + $this->isItemOnIndex('id', $id), |
|
| 168 | + sprintf('Product review with id %s exist', $id) |
|
| 169 | + ); |
|
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | /** |
@@ -149,11 +149,11 @@ discard block |
||
| 149 | 149 | */ |
| 150 | 150 | public function iShouldSeeTheShippingDateAs(OrderInterface $order, string $dateTime): void |
| 151 | 151 | { |
| 152 | - Assert::eq( |
|
| 153 | - new \DateTime($this->responseChecker->getValue($this->client->show((string) $order->getShipments()->first()->getId()), 'shippedAt')), |
|
| 154 | - new \DateTime($dateTime), |
|
| 155 | - 'Shipment was shipped in different date' |
|
| 156 | - ); |
|
| 152 | + Assert::eq( |
|
| 153 | + new \DateTime($this->responseChecker->getValue($this->client->show((string) $order->getShipments()->first()->getId()), 'shippedAt')), |
|
| 154 | + new \DateTime($dateTime), |
|
| 155 | + 'Shipment was shipped in different date' |
|
| 156 | + ); |
|
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | /** |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | |
| 214 | 214 | private function isShipmentForOrder(OrderInterface $order): bool |
| 215 | 215 | { |
| 216 | - return $this->responseChecker->hasItemWithValue( |
|
| 216 | + return $this->responseChecker->hasItemWithValue( |
|
| 217 | 217 | $this->client->getLastResponse(), |
| 218 | 218 | 'order', |
| 219 | 219 | $this->iriConverter->getIriFromItem($order) |
@@ -18,21 +18,21 @@ |
||
| 18 | 18 | |
| 19 | 19 | final class LocaleContextBuilderSpec extends ObjectBehavior |
| 20 | 20 | { |
| 21 | - function let( |
|
| 22 | - SerializerContextBuilderInterface $decoratedSerializerContextBuilder, |
|
| 23 | - LocaleContextInterface $localeContext |
|
| 24 | - ): void { |
|
| 25 | - $this->beConstructedWith($decoratedSerializerContextBuilder, $localeContext); |
|
| 26 | - } |
|
| 21 | + function let( |
|
| 22 | + SerializerContextBuilderInterface $decoratedSerializerContextBuilder, |
|
| 23 | + LocaleContextInterface $localeContext |
|
| 24 | + ): void { |
|
| 25 | + $this->beConstructedWith($decoratedSerializerContextBuilder, $localeContext); |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - function it_updates_an_context_when_locale_context_has_locale( |
|
| 29 | - Request $request, |
|
| 30 | - SerializerContextBuilderInterface $decoratedSerializerContextBuilder, |
|
| 31 | - LocaleContextInterface $localeContext |
|
| 32 | - ): void { |
|
| 33 | - $decoratedSerializerContextBuilder->createFromRequest($request, true, [])->shouldBeCalled(); |
|
| 34 | - $localeContext->getLocaleCode()->willReturn('en_US'); |
|
| 28 | + function it_updates_an_context_when_locale_context_has_locale( |
|
| 29 | + Request $request, |
|
| 30 | + SerializerContextBuilderInterface $decoratedSerializerContextBuilder, |
|
| 31 | + LocaleContextInterface $localeContext |
|
| 32 | + ): void { |
|
| 33 | + $decoratedSerializerContextBuilder->createFromRequest($request, true, [])->shouldBeCalled(); |
|
| 34 | + $localeContext->getLocaleCode()->willReturn('en_US'); |
|
| 35 | 35 | |
| 36 | - $this->createFromRequest($request, true, []); |
|
| 37 | - } |
|
| 36 | + $this->createFromRequest($request, true, []); |
|
| 37 | + } |
|
| 38 | 38 | } |