Fix phpcs errors

This commit is contained in:
dinamiko 2021-03-17 09:43:58 +01:00
parent e0f45fac4f
commit f8a2bf5107

View file

@ -730,9 +730,9 @@ class SmartButton implements SmartButtonInterface {
$disable_funding[] = 'card';
}
if ( count( $disable_funding ) > 0 ) {
$params['disable-funding'] = implode( ',', array_unique( $disable_funding ) );
}
if ( count( $disable_funding ) > 0 ) {
$params['disable-funding'] = implode( ',', array_unique( $disable_funding ) );
}
$smart_button_url = add_query_arg( $params, 'https://www.paypal.com/sdk/js' );
return $smart_button_url;