From 6496a202a3da4bf0471e9211a37be7aec589593e Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Thu, 25 Aug 2022 16:26:36 +0400 Subject: [PATCH] Fix PHPcs problems --- modules/ppcp-wc-gateway/services.php | 32 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index 7f482b814..546699cef 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -2133,18 +2133,18 @@ return array( return $tracking_label; }, - 'wcgateway.enable-dcc-url-sandbox' => static function ( ContainerInterface $container ): string { - return 'https://www.sandbox.paypal.com/bizsignup/entry/product/ppcp'; - }, - 'wcgateway.enable-dcc-url-live' => static function ( ContainerInterface $container ): string { - return 'https://www.paypal.com/bizsignup/entry/product/ppcp'; - }, - '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'; - }, - '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'; - }, + 'wcgateway.enable-dcc-url-sandbox' => static function ( ContainerInterface $container ): string { + return 'https://www.sandbox.paypal.com/bizsignup/entry/product/ppcp'; + }, + 'wcgateway.enable-dcc-url-live' => static function ( ContainerInterface $container ): string { + return 'https://www.paypal.com/bizsignup/entry/product/ppcp'; + }, + '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'; + }, + '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'; + }, 'wcgateway.settings.connection.dcc-status-text' => static function ( ContainerInterface $container ): string { $dcc_applies = $container->get( 'api.helpers.dccapplies' ); assert( $dcc_applies instanceof DccApplies ); @@ -2162,8 +2162,8 @@ return array( : esc_html__( 'Enable Advanced Card Payments', 'woocommerce-paypal-payments' ); $enable_dcc_url = $environment->current_environment_is( Environment::PRODUCTION ) - ? $container->get('wcgateway.enable-dcc-url-live') - : $container->get('wcgateway.enable-dcc-url-sandbox'); + ? $container->get( 'wcgateway.enable-dcc-url-live' ) + : $container->get( 'wcgateway.enable-dcc-url-sandbox' ); $dcc_button_url = $dcc_enabled ? 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' ); $enable_pui_url = $environment->current_environment_is( Environment::PRODUCTION ) - ? $container->get('wcgateway.enable-pui-url-live') - : $container->get('wcgateway.enable-pui-url-sandbox'); + ? $container->get( 'wcgateway.enable-pui-url-live' ) + : $container->get( 'wcgateway.enable-pui-url-sandbox' ); $pui_button_url = $pui_enabled ? admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-pay-upon-invoice-gateway' )