mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Fix lint
This commit is contained in:
parent
e94316aecd
commit
cdd4a69bf5
1 changed files with 6 additions and 1 deletions
|
@ -860,7 +860,7 @@ class SmartButton implements SmartButtonInterface {
|
||||||
'wrapper' => '#ppc-button-' . PayPalGateway::ID,
|
'wrapper' => '#ppc-button-' . PayPalGateway::ID,
|
||||||
'mini_cart_wrapper' => '#ppc-button-minicart',
|
'mini_cart_wrapper' => '#ppc-button-minicart',
|
||||||
'cancel_wrapper' => '#ppcp-cancel',
|
'cancel_wrapper' => '#ppcp-cancel',
|
||||||
'is_disabled' => $this->is_button_disabled(),
|
'is_disabled' => $this->is_button_disabled(),
|
||||||
'mini_cart_style' => array(
|
'mini_cart_style' => array(
|
||||||
'layout' => $this->style_for_context( 'layout', 'mini-cart' ),
|
'layout' => $this->style_for_context( 'layout', 'mini-cart' ),
|
||||||
'color' => $this->style_for_context( 'color', 'mini-cart' ),
|
'color' => $this->style_for_context( 'color', 'mini-cart' ),
|
||||||
|
@ -1351,6 +1351,11 @@ class SmartButton implements SmartButtonInterface {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if PayPal buttons/messages should be rendered for the current page.
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
protected function is_button_disabled(): bool {
|
protected function is_button_disabled(): bool {
|
||||||
if ( 'product' !== $this->context() ) {
|
if ( 'product' !== $this->context() ) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue