From 0c62f16f14ef494c28897b2e5686d0a18d019215 Mon Sep 17 00:00:00 2001 From: Kirill Braslavsky Date: Mon, 1 Mar 2021 19:01:25 +0200 Subject: [PATCH] remove unneeded ternary --- modules/ppcp-button/src/Endpoint/class-createorderendpoint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php b/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php index 6068b2703..5941cf435 100644 --- a/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php +++ b/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php @@ -163,7 +163,7 @@ class CreateOrderEndpoint implements EndpointInterface { $this->set_bn_code( $data ); $needs_shipping = WC()->cart && WC()->cart->needs_shipping(); - $shipping_address_is_fix = $needs_shipping && 'checkout' === $data['context'] ? true : false; + $shipping_address_is_fix = $needs_shipping && 'checkout' === $data['context']; $order = $this->api_endpoint->create( $purchase_units, $this->payer( $data, $wc_order ),