mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix lint
This commit is contained in:
parent
fdca5c56a5
commit
eec344f35d
1 changed files with 9 additions and 3 deletions
|
@ -1339,11 +1339,17 @@ document.querySelector("#payment").before(document.querySelector("#ppcp-messages
|
||||||
$disable_funding[] = 'paylater';
|
$disable_funding[] = 'paylater';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure paypal is not sent in disable funding.
|
|
||||||
$disable_funding = array_filter(
|
$disable_funding = array_filter(
|
||||||
$disable_funding,
|
$disable_funding,
|
||||||
function( $value ) {
|
/**
|
||||||
return $value !== 'paypal';
|
* Make sure paypal is not sent in disable funding.
|
||||||
|
*
|
||||||
|
* @param string $funding_source The funding_source.
|
||||||
|
*
|
||||||
|
* @psalm-suppress MissingClosureParamType
|
||||||
|
*/
|
||||||
|
function( $funding_source ) {
|
||||||
|
return $funding_source !== 'paypal';
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue