mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
chore: fix typo
This commit is contained in:
@@ -74,9 +74,15 @@ readonly class OvhConnector implements ConnectorInterface
|
||||
$offers = $conn->get("/order/cart/{$cartId}/domain", [
|
||||
'domain' => $ldhName,
|
||||
]);
|
||||
|
||||
$pricingModes = ['create-premium'];
|
||||
if ('create-premium' !== $authData['pricingMode']) {
|
||||
$pricingModes[] = $authData['pricingMode'];
|
||||
}
|
||||
|
||||
$offer = array_filter($offers, fn ($offer) => 'create' === $offer['action']
|
||||
&& true === $offer['orderable']
|
||||
&& $offer['pricingMode'] === $authData['pricingMode']
|
||||
&& in_array($offer['pricingMode'], $pricingModes)
|
||||
);
|
||||
if (empty($offer)) {
|
||||
$conn->delete("/order/cart/{$cartId}");
|
||||
|
||||
Reference in New Issue
Block a user