From 1655a7aec965b1a2bc45d9e7a7b50cbf5b295278 Mon Sep 17 00:00:00 2001
From: Pedro Silva
Date: Wed, 12 Jul 2023 08:37:26 +0100
Subject: [PATCH] Fix lint
---
.../Settings/Fields/connection-tab-fields.php | 42 +++++++++----------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/modules/ppcp-wc-gateway/src/Settings/Fields/connection-tab-fields.php b/modules/ppcp-wc-gateway/src/Settings/Fields/connection-tab-fields.php
index 60cde049f..0061b5fbf 100644
--- a/modules/ppcp-wc-gateway/src/Settings/Fields/connection-tab-fields.php
+++ b/modules/ppcp-wc-gateway/src/Settings/Fields/connection-tab-fields.php
@@ -252,7 +252,7 @@ return function ( ContainerInterface $container, array $fields ): array {
'description' => __( 'The merchant id of your account. Should be exactly 13 alphanumeric uppercase letters.', 'woocommerce-paypal-payments' ),
'maxlength' => 13,
'custom_attributes' => array(
- 'pattern' => '[A-Z0-9]{13}',
+ 'pattern' => '[A-Z0-9]{13}',
'autocomplete' => 'off',
),
'default' => false,
@@ -264,21 +264,21 @@ return function ( ContainerInterface $container, array $fields ): array {
'gateway' => Settings::CONNECTION_TAB_ID,
),
'client_id_production' => array(
- 'title' => __( 'Live Client Id', 'woocommerce-paypal-payments' ),
- 'classes' => array( State::STATE_ONBOARDED === $state->production_state() ? 'onboarded' : '', 'ppcp-always-shown-element' ),
- 'type' => 'text',
- 'desc_tip' => true,
- 'description' => __( 'The client id of your api ', 'woocommerce-paypal-payments' ),
+ 'title' => __( 'Live Client Id', 'woocommerce-paypal-payments' ),
+ 'classes' => array( State::STATE_ONBOARDED === $state->production_state() ? 'onboarded' : '', 'ppcp-always-shown-element' ),
+ 'type' => 'text',
+ 'desc_tip' => true,
+ 'description' => __( 'The client id of your api ', 'woocommerce-paypal-payments' ),
'custom_attributes' => array(
'autocomplete' => 'off',
),
- 'default' => false,
- 'screens' => array(
+ 'default' => false,
+ 'screens' => array(
State::STATE_START,
State::STATE_ONBOARDED,
),
- 'requirements' => array(),
- 'gateway' => Settings::CONNECTION_TAB_ID,
+ 'requirements' => array(),
+ 'gateway' => Settings::CONNECTION_TAB_ID,
),
'client_secret_production' => array(
'title' => __( 'Live Secret Key', 'woocommerce-paypal-payments' ),
@@ -318,8 +318,8 @@ return function ( ContainerInterface $container, array $fields ): array {
'description' => __( 'The merchant id of your account. Should be exactly 13 alphanumeric uppercase letters.', 'woocommerce-paypal-payments' ),
'maxlength' => 13,
'custom_attributes' => array(
- 'pattern' => '[A-Z0-9]{13}',
- 'autocomplete' => 'off'
+ 'pattern' => '[A-Z0-9]{13}',
+ 'autocomplete' => 'off',
),
'default' => false,
'screens' => array(
@@ -330,21 +330,21 @@ return function ( ContainerInterface $container, array $fields ): array {
'gateway' => Settings::CONNECTION_TAB_ID,
),
'client_id_sandbox' => array(
- 'title' => __( 'Sandbox Client Id', 'woocommerce-paypal-payments' ),
- 'classes' => array( State::STATE_ONBOARDED === $state->sandbox_state() ? 'onboarded' : '', 'ppcp-always-shown-element' ),
- 'type' => 'text',
- 'desc_tip' => true,
- 'description' => __( 'The client id of your api ', 'woocommerce-paypal-payments' ),
+ 'title' => __( 'Sandbox Client Id', 'woocommerce-paypal-payments' ),
+ 'classes' => array( State::STATE_ONBOARDED === $state->sandbox_state() ? 'onboarded' : '', 'ppcp-always-shown-element' ),
+ 'type' => 'text',
+ 'desc_tip' => true,
+ 'description' => __( 'The client id of your api ', 'woocommerce-paypal-payments' ),
'custom_attributes' => array(
'autocomplete' => 'off',
),
- 'default' => false,
- 'screens' => array(
+ 'default' => false,
+ 'screens' => array(
State::STATE_START,
State::STATE_ONBOARDED,
),
- 'requirements' => array(),
- 'gateway' => Settings::CONNECTION_TAB_ID,
+ 'requirements' => array(),
+ 'gateway' => Settings::CONNECTION_TAB_ID,
),
'client_secret_sandbox' => array(
'title' => __( 'Sandbox Secret Key', 'woocommerce-paypal-payments' ),