Skip to content

Commit

Permalink
refactor: implement feedback on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianSDV committed Nov 8, 2024
1 parent 10f2879 commit db737f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/Hooks/CheckoutScriptHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,10 @@ public function renderDeliveryOptions(): void
*/
private function getDeliveryOptionsPosition(): string
{
$position = Filter::apply(
return Filter::apply(
'deliveryOptionsPosition',
Settings::get(CheckoutSettings::DELIVERY_OPTIONS_POSITION, CheckoutSettings::ID)
);

return $position ?: 'woocommerce_after_checkout_billing_form';
}

/**
Expand Down
4 changes: 3 additions & 1 deletion tests/mock_wc_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ function WC()
return MockWc::getInstance();
}

/** @param string $page Page slug.
/**
* @param string $page Page slug.
*
* @return int
* @see \wc_get_page_id()
* Retrieve page ids - used for myaccount, edit_address, shop, cart, checkout, pay, view_order, terms. returns -1
Expand Down

0 comments on commit db737f7

Please sign in to comment.