mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Make internal method private
This commit is contained in:
parent
0ed05ac1ea
commit
64c140ab23
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ class PurchaseUnitFactory {
|
|||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function should_disable_shipping( array $items, ?Address $shipping_address ): bool {
|
||||
private function should_disable_shipping( array $items, ?Address $shipping_address ): bool {
|
||||
return ! $this->shipping_needed( ... array_values( $items ) ) ||
|
||||
! $shipping_address ||
|
||||
empty( $shipping_address->country_code() ) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue