Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
mandan2 committed Oct 2, 2023
1 parent d23bb6d commit 7d8ecc1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Adapter/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public function formatPrice(float $price, string $isoCode): string
{
$locale = PrestashopContext::getContext()->getCurrentLocale();

/* @phpstan-ignore-next-line */
if (!$locale) {
return (string) $price;
}
Expand Down
5 changes: 2 additions & 3 deletions subscription/Presenter/OrderDetailPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ public function present(
throw CouldNotPresentOrderDetail::failedToFindCurrency();
}

$linkRewrite = is_array($product->link_rewrite) && isset($product->link_rewrite[$order->id_lang])
? $product->link_rewrite[$order->id_lang]
: $product->link_rewrite;
/* @phpstan-ignore-next-line */
$linkRewrite = $product->link_rewrite[$order->id_lang] ?? $product->link_rewrite;

$image = $this->productRepository->getCombinationImageById((int) $recurringProduct->id_product_attribute, (int) $order->id_lang);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div>
<div class="col-12 col-lg-6">
<a href="{$order.link}"><p><b>{l s='Product:' mod='mollie'}</b> {$order.name}</p></a>
<p><b></b> {$order.quantity}</p>
<p><b>{l s='Quantity:' mod='mollie'}</b> {$order.quantity}</p>
<p><b>{l s='Unit price:' mod='mollie'}</b> {$order.unit_price}</p>
</div>
</div>
Expand Down

0 comments on commit 7d8ecc1

Please sign in to comment.