mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix PHPcs problems
This commit is contained in:
parent
a693829815
commit
6496a202a3
1 changed files with 16 additions and 16 deletions
|
@ -2133,18 +2133,18 @@ return array(
|
||||||
|
|
||||||
return $tracking_label;
|
return $tracking_label;
|
||||||
},
|
},
|
||||||
'wcgateway.enable-dcc-url-sandbox' => static function ( ContainerInterface $container ): string {
|
'wcgateway.enable-dcc-url-sandbox' => static function ( ContainerInterface $container ): string {
|
||||||
return 'https://www.sandbox.paypal.com/bizsignup/entry/product/ppcp';
|
return 'https://www.sandbox.paypal.com/bizsignup/entry/product/ppcp';
|
||||||
},
|
},
|
||||||
'wcgateway.enable-dcc-url-live' => static function ( ContainerInterface $container ): string {
|
'wcgateway.enable-dcc-url-live' => static function ( ContainerInterface $container ): string {
|
||||||
return 'https://www.paypal.com/bizsignup/entry/product/ppcp';
|
return 'https://www.paypal.com/bizsignup/entry/product/ppcp';
|
||||||
},
|
},
|
||||||
'wcgateway.enable-pui-url-sandbox' => static function ( ContainerInterface $container ): string {
|
'wcgateway.enable-pui-url-sandbox' => static function ( ContainerInterface $container ): string {
|
||||||
return 'https://www.sandbox.paypal.com/bizsignup/entry?country.x=DE&product=payment_methods&capabilities=PAY_UPON_INVOICE';
|
return 'https://www.sandbox.paypal.com/bizsignup/entry?country.x=DE&product=payment_methods&capabilities=PAY_UPON_INVOICE';
|
||||||
},
|
},
|
||||||
'wcgateway.enable-pui-url-live' => static function ( ContainerInterface $container ): string {
|
'wcgateway.enable-pui-url-live' => static function ( ContainerInterface $container ): string {
|
||||||
return 'https://www.paypal.com/bizsignup/entry?country.x=DE&product=payment_methods&capabilities=PAY_UPON_INVOICE';
|
return 'https://www.paypal.com/bizsignup/entry?country.x=DE&product=payment_methods&capabilities=PAY_UPON_INVOICE';
|
||||||
},
|
},
|
||||||
'wcgateway.settings.connection.dcc-status-text' => static function ( ContainerInterface $container ): string {
|
'wcgateway.settings.connection.dcc-status-text' => static function ( ContainerInterface $container ): string {
|
||||||
$dcc_applies = $container->get( 'api.helpers.dccapplies' );
|
$dcc_applies = $container->get( 'api.helpers.dccapplies' );
|
||||||
assert( $dcc_applies instanceof DccApplies );
|
assert( $dcc_applies instanceof DccApplies );
|
||||||
|
@ -2162,8 +2162,8 @@ return array(
|
||||||
: esc_html__( 'Enable Advanced Card Payments', 'woocommerce-paypal-payments' );
|
: esc_html__( 'Enable Advanced Card Payments', 'woocommerce-paypal-payments' );
|
||||||
|
|
||||||
$enable_dcc_url = $environment->current_environment_is( Environment::PRODUCTION )
|
$enable_dcc_url = $environment->current_environment_is( Environment::PRODUCTION )
|
||||||
? $container->get('wcgateway.enable-dcc-url-live')
|
? $container->get( 'wcgateway.enable-dcc-url-live' )
|
||||||
: $container->get('wcgateway.enable-dcc-url-sandbox');
|
: $container->get( 'wcgateway.enable-dcc-url-sandbox' );
|
||||||
|
|
||||||
$dcc_button_url = $dcc_enabled
|
$dcc_button_url = $dcc_enabled
|
||||||
? admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway&ppcp-tab=ppcp-credit-card-gateway' )
|
? admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway&ppcp-tab=ppcp-credit-card-gateway' )
|
||||||
|
@ -2192,8 +2192,8 @@ return array(
|
||||||
$disabled_status_text = esc_html__( 'Status: Not yet enabled', 'woocommerce-paypal-payments' );
|
$disabled_status_text = esc_html__( 'Status: Not yet enabled', 'woocommerce-paypal-payments' );
|
||||||
|
|
||||||
$enable_pui_url = $environment->current_environment_is( Environment::PRODUCTION )
|
$enable_pui_url = $environment->current_environment_is( Environment::PRODUCTION )
|
||||||
? $container->get('wcgateway.enable-pui-url-live')
|
? $container->get( 'wcgateway.enable-pui-url-live' )
|
||||||
: $container->get('wcgateway.enable-pui-url-sandbox');
|
: $container->get( 'wcgateway.enable-pui-url-sandbox' );
|
||||||
|
|
||||||
$pui_button_url = $pui_enabled
|
$pui_button_url = $pui_enabled
|
||||||
? admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-pay-upon-invoice-gateway' )
|
? admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-pay-upon-invoice-gateway' )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue