mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Code Beautifier and Fixer
This commit is contained in:
parent
ab55b2dfc9
commit
7e8511732e
1 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ class SmartButton implements SmartButtonInterface
|
|||
return true;
|
||||
}
|
||||
|
||||
public function enqueue() : bool
|
||||
public function enqueue(): bool
|
||||
{
|
||||
wp_enqueue_script(
|
||||
'paypal-smart-button',
|
||||
|
@ -105,7 +105,7 @@ class SmartButton implements SmartButtonInterface
|
|||
'wrapper' => '#ppc-button',
|
||||
'mini_cart_wrapper' => '#ppc-button-minicart',
|
||||
'cancel_wrapper' => '#ppcp-cancel',
|
||||
'url' =>$smartButtonUrl,
|
||||
'url' => $smartButtonUrl,
|
||||
],
|
||||
];
|
||||
wp_localize_script(
|
||||
|
@ -116,7 +116,7 @@ class SmartButton implements SmartButtonInterface
|
|||
return true;
|
||||
}
|
||||
|
||||
private function context() : string
|
||||
private function context(): string
|
||||
{
|
||||
$context = 'mini-cart';
|
||||
if (is_product()) {
|
||||
|
@ -125,7 +125,7 @@ class SmartButton implements SmartButtonInterface
|
|||
if (is_cart()) {
|
||||
$context = 'cart';
|
||||
}
|
||||
if (is_checkout() && ! $this->sessionHandler->order()) {
|
||||
if (is_checkout() && !$this->sessionHandler->order()) {
|
||||
$context = 'checkout';
|
||||
}
|
||||
return $context;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue