Skip to content

Commit

Permalink
Un-deprecated the getShipToName method. It still seems to make sense …
Browse files Browse the repository at this point in the history
…to me
  • Loading branch information
fulopattila122 committed Mar 30, 2024
1 parent fedad44 commit d373da9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Checkout/Drivers/BaseCheckoutStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ abstract class BaseCheckoutStore implements CheckoutStore

public function __construct(
protected CheckoutDataFactory $factory,
) {
)
{
}

public function getCart(): ?CheckoutSubject
Expand Down Expand Up @@ -100,7 +101,7 @@ public function getState(): CheckoutState

public function getShipToBillingAddress(bool $default = true): bool
{
return (bool) $this->readRawDataFromStore('ship_to_billing_address', $default);
return (bool)$this->readRawDataFromStore('ship_to_billing_address', $default);
}

public function setShipToBillingAddress(bool $value): void
Expand Down Expand Up @@ -258,7 +259,7 @@ protected function updateShippingAddress(null|array|Address $data): void

protected function updateShipToBillingAddress($data): void
{
$this->setShipToBillingAddress((bool) $data);
$this->setShipToBillingAddress((bool)$data);
}

protected function getAttribute(string $name): mixed
Expand Down

0 comments on commit d373da9

Please sign in to comment.