Use null coalescing operator instead of ternary

This commit is contained in:
dinamiko 2022-11-07 12:15:42 +01:00
parent 9e7ae5d16a
commit 1e6aa37216

View file

@ -145,7 +145,7 @@ class PayUponInvoiceHelper {
*/ */
global $wp; global $wp;
$order_id = isset( $wp->query_vars['order-pay'] ) ? (int) $wp->query_vars['order-pay'] : 0; $order_id = (int) ( $wp->query_vars['order-pay'] ?? 0 );
if ( $order_id === 0 ) { if ( $order_id === 0 ) {
return false; return false;
} }