Completed
Push — master ( b790b0...129907 )
by Roy
02:04
created
includes/class-wc-stripe-sepa-payment-token.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if ( ! defined( 'ABSPATH' ) ) {
3
+if ( ! defined('ABSPATH')) {
4 4
 	exit; // Exit if accessed directly
5 5
 }
6 6
 
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
 	 * @param  string $deprecated Deprecated since WooCommerce 3.0
36 36
 	 * @return string
37 37
 	 */
38
-	public function get_display_name( $deprecated = '' ) {
38
+	public function get_display_name($deprecated = '') {
39 39
 		$display = sprintf(
40 40
 			/* translators: last 4 digits of IBAN account */
41
-			__( 'SEPA IBAN ending in %s', 'woocommerce-gateway-stripe' ),
41
+			__('SEPA IBAN ending in %s', 'woocommerce-gateway-stripe'),
42 42
 			$this->get_last4()
43 43
 		);
44 44
 
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
 	 * @return boolean True if the passed data is valid
67 67
 	 */
68 68
 	public function validate() {
69
-		if ( false === parent::validate() ) {
69
+		if (false === parent::validate()) {
70 70
 			return false;
71 71
 		}
72 72
 
73
-		if ( ! $this->get_last4( 'edit' ) ) {
73
+		if ( ! $this->get_last4('edit')) {
74 74
 			return false;
75 75
 		}
76 76
 
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
 	 * @param  string $context
86 86
 	 * @return string Last 4 digits
87 87
 	 */
88
-	public function get_last4( $context = 'view' ) {
89
-		return $this->get_prop( 'last4', $context );
88
+	public function get_last4($context = 'view') {
89
+		return $this->get_prop('last4', $context);
90 90
 	}
91 91
 
92 92
 	/**
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	 * @version 4.0.0
96 96
 	 * @param string $last4
97 97
 	 */
98
-	public function set_last4( $last4 ) {
99
-		$this->set_prop( 'last4', $last4 );
98
+	public function set_last4($last4) {
99
+		$this->set_prop('last4', $last4);
100 100
 	}
101 101
 }
Please login to merge, or discard this patch.
includes/class-wc-stripe-logger.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit; // Exit if accessed directly
4 4
 }
5 5
 
@@ -20,23 +20,23 @@  discard block
 block discarded – undo
20 20
 	 * @since 4.0.0
21 21
 	 * @version 4.0.0
22 22
 	 */
23
-	public static function log( $message, $start_time = null, $end_time = null ) {
24
-		if ( empty( self::$logger ) ) {
23
+	public static function log($message, $start_time = null, $end_time = null) {
24
+		if (empty(self::$logger)) {
25 25
 			self::$logger = new WC_Logger();
26 26
 		}
27 27
 
28
-		$settings = get_option( 'woocommerce_stripe_settings' );
28
+		$settings = get_option('woocommerce_stripe_settings');
29 29
 
30
-		if ( empty( $settings ) || isset( $settings['logging'] ) && 'yes' !== $settings['logging'] ) {
30
+		if (empty($settings) || isset($settings['logging']) && 'yes' !== $settings['logging']) {
31 31
 			return;
32 32
 		}
33 33
 
34
-		if ( ! is_null( $start_time ) ) {
34
+		if ( ! is_null($start_time)) {
35 35
 
36
-			$formatted_start_time = date_i18n( get_option( 'date_format' ) . ' g:ia', $start_time );
37
-			$end_time             = is_null( $end_time ) ? current_time( 'timestamp' ) : $end_time;
38
-			$formatted_end_time   = date_i18n( get_option( 'date_format' ) . ' g:ia', $end_time );
39
-			$elapsed_time         = round( abs( $end_time - $start_time ) / 60, 2 );
36
+			$formatted_start_time = date_i18n(get_option('date_format') . ' g:ia', $start_time);
37
+			$end_time             = is_null($end_time) ? current_time('timestamp') : $end_time;
38
+			$formatted_end_time   = date_i18n(get_option('date_format') . ' g:ia', $end_time);
39
+			$elapsed_time         = round(abs($end_time - $start_time) / 60, 2);
40 40
 
41 41
 			$log_entry  = '====Start Log ' . $formatted_start_time . '====' . "\n" . $message . "\n";
42 42
 			$log_entry .= '====End Log ' . $formatted_end_time . ' (' . $elapsed_time . ')====' . "\n\n";
@@ -47,6 +47,6 @@  discard block
 block discarded – undo
47 47
 
48 48
 		}
49 49
 
50
-		self::$logger->add( self::WC_LOG_FILENAME, $log_entry );
50
+		self::$logger->add(self::WC_LOG_FILENAME, $log_entry);
51 51
 	}
52 52
 }
Please login to merge, or discard this patch.
includes/admin/stripe-bitcoin-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_bitcoin_settings',
8
+return apply_filters('wc_stripe_bitcoin_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: Global', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: Global', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#bitcoin" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#bitcoin" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ),
19
+			'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe Bitcoin', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe Bitcoin', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'Bitcoin', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('Bitcoin', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'Bitcoin payment information will be provided when you place the order.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('Bitcoin payment information will be provided when you place the order.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.
includes/admin/stripe-ideal-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_ideal_settings',
8
+return apply_filters('wc_stripe_ideal_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ),
19
+			'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe iDeal', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe iDeal', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'iDeal', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('iDeal', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'You will be redirected to iDeal.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('You will be redirected to iDeal.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.
includes/admin/stripe-sofort-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_sofort_settings',
8
+return apply_filters('wc_stripe_sofort_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: Germany, Austria', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: Germany, Austria', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#sofort" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#sofort" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ),
19
+			'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe SOFORT', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe SOFORT', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'SOFORT', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('SOFORT', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'You will be redirected to SOFORT.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('You will be redirected to SOFORT.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.
includes/admin/stripe-giropay-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_giropay_settings',
8
+return apply_filters('wc_stripe_giropay_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: Germany', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: Germany', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#giropay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#giropay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ),
19
+			'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe Giropay', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe Giropay', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'Giropay', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('Giropay', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'You will be redirected to Giropay.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('You will be redirected to Giropay.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.
includes/admin/stripe-sepa-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_sepa_settings',
8
+return apply_filters('wc_stripe_sepa_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: France, Germany, Spain, Belgium, Netherlands, Luxembourg, Italy, Portugal, Austria, Ireland', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: France, Germany, Spain, Belgium, Netherlands, Luxembourg, Italy, Portugal, Austria, Ireland', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#sepa-direct-debit" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#sepa-direct-debit" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ),
19
+			'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe SEPA Direct Debit', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe SEPA Direct Debit', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'SEPA Direct Debit', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('SEPA Direct Debit', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'Mandate Information.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('Mandate Information.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.
includes/admin/stripe-bancontact-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_bancontact_settings',
8
+return apply_filters('wc_stripe_bancontact_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ),
19
+			'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe Bancontact', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe Bancontact', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'Bancontact', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('Bancontact', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'You will be redirected to Bancontact.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('You will be redirected to Bancontact.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.
includes/admin/stripe-alipay-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_alipay_settings',
8
+return apply_filters('wc_stripe_alipay_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: China', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: China', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#alipay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#alipay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ),
19
+			'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe Alipay', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe Alipay', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'Alipay', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('Alipay', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'You will be redirected to Alipay.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('You will be redirected to Alipay.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.