Passed
Push — master ( 11ea61...3d88bf )
by Brian
05:49
created
includes/admin/meta-boxes/class-getpaid-meta-box-item-vat.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  *
8 8
  */
9 9
 
10
-if ( ! defined( 'ABSPATH' ) ) {
10
+if (!defined('ABSPATH')) {
11 11
 	exit; // Exit if accessed directly
12 12
 }
13 13
 
@@ -21,31 +21,31 @@  discard block
 block discarded – undo
21 21
 	 *
22 22
 	 * @param WP_Post $post
23 23
 	 */
24
-    public static function output( $post ) {
24
+    public static function output($post) {
25 25
         global $wpinv_euvat;
26 26
 
27 27
         // Prepare the item.
28
-        $item = new WPInv_Item( $post );
28
+        $item = new WPInv_Item($post);
29 29
 
30 30
         echo "<div class='bsui' style='max-width: 600px;padding-top: 10px;'>";
31 31
 
32
-        do_action( 'wpinv_item_before_vat_metabox', $item );
32
+        do_action('wpinv_item_before_vat_metabox', $item);
33 33
 
34 34
         // Output the vat rules settings.
35
-        if ( $wpinv_euvat->allow_vat_rules() ) {
36
-            do_action( 'wpinv_item_vat_metabox_before_vat_rules', $item );
37
-            self::output_vat_rules( $item, $wpinv_euvat );
38
-            do_action( 'wpinv_item_vat_metabox_vat_rules', $item );
35
+        if ($wpinv_euvat->allow_vat_rules()) {
36
+            do_action('wpinv_item_vat_metabox_before_vat_rules', $item);
37
+            self::output_vat_rules($item, $wpinv_euvat);
38
+            do_action('wpinv_item_vat_metabox_vat_rules', $item);
39 39
         }
40 40
 
41 41
         // Output vat class settings.
42
-        if ( $wpinv_euvat->allow_vat_classes() ) {
43
-            do_action( 'wpinv_item_vat_metabox_before_vat_rules', $item );
44
-            self::output_vat_classes( $item, $wpinv_euvat );
45
-            do_action( 'wpinv_item_vat_metabox_vat_class', $item );
42
+        if ($wpinv_euvat->allow_vat_classes()) {
43
+            do_action('wpinv_item_vat_metabox_before_vat_rules', $item);
44
+            self::output_vat_classes($item, $wpinv_euvat);
45
+            do_action('wpinv_item_vat_metabox_vat_class', $item);
46 46
         }
47 47
 
48
-        do_action( 'wpinv_item_vat_metabox', $item );
48
+        do_action('wpinv_item_vat_metabox', $item);
49 49
 
50 50
         echo '</div>';
51 51
     }
@@ -56,14 +56,14 @@  discard block
 block discarded – undo
56 56
 	 * @param WPInv_Item $item
57 57
      * @param WPInv_EUVat $wpinv_euvat
58 58
 	 */
59
-    public static function output_vat_rules( $item, $wpinv_euvat ) {
59
+    public static function output_vat_rules($item, $wpinv_euvat) {
60 60
         ?>
61 61
 
62 62
             <div class="wpinv_vat_rules">
63 63
 
64 64
                 <div class="form-group row">
65 65
                     <label for="wpinv_vat_rules" class="col-sm-3 col-form-label">
66
-                        <?php _e( 'VAT Rule', 'invoicing' );?>
66
+                        <?php _e('VAT Rule', 'invoicing'); ?>
67 67
                     </label>
68 68
                     <div class="col-sm-8">
69 69
                         <?php
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
                                 array(
72 72
                                     'id'               => 'wpinv_vat_rules',
73 73
                                     'name'             => 'wpinv_vat_rules',
74
-                                    'placeholder'      => __( 'Select VAT rule', 'invoicing' ),
75
-                                    'value'            => $item->get_vat_rule( 'edit' ),
74
+                                    'placeholder'      => __('Select VAT rule', 'invoicing'),
75
+                                    'value'            => $item->get_vat_rule('edit'),
76 76
                                     'select2'          => true,
77 77
                                     'data-allow-clear' => 'false',
78 78
                                     'no_wrap'          => true,
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                         ?>
83 83
                     </div>
84 84
                     <div class="col-sm-1 pt-2 pl-0">
85
-                        <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e( 'When you select physical product rules, only consumers and businesses in your country will be charged VAT. The VAT rate used will be the rate in your country. <br><br>If you select Digital product rules, VAT will be charged at the rate that applies in the country of the consumer. Only businesses in your country will be charged VAT.', 'invoicing' ); ?>"></span>
85
+                        <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e('When you select physical product rules, only consumers and businesses in your country will be charged VAT. The VAT rate used will be the rate in your country. <br><br>If you select Digital product rules, VAT will be charged at the rate that applies in the country of the consumer. Only businesses in your country will be charged VAT.', 'invoicing'); ?>"></span>
86 86
                     </div>
87 87
                 </div>
88 88
 
@@ -98,14 +98,14 @@  discard block
 block discarded – undo
98 98
 	 * @param WPInv_Item $item
99 99
      * @param WPInv_EUVat $wpinv_euvat
100 100
 	 */
101
-    public static function output_vat_classes( $item, $wpinv_euvat ) {
101
+    public static function output_vat_classes($item, $wpinv_euvat) {
102 102
         ?>
103 103
 
104 104
             <div class="wpinv_vat_classes">
105 105
 
106 106
                 <div class="form-group row">
107 107
                     <label for="wpinv_vat_class" class="col-sm-3 col-form-label">
108
-                        <?php _e( 'VAT Class', 'invoicing' );?>
108
+                        <?php _e('VAT Class', 'invoicing'); ?>
109 109
                     </label>
110 110
                     <div class="col-sm-8">
111 111
                         <?php
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
                                 array(
114 114
                                     'id'               => 'wpinv_vat_class',
115 115
                                     'name'             => 'wpinv_vat_class',
116
-                                    'placeholder'      => __( 'Select VAT class', 'invoicing' ),
117
-                                    'value'            => $item->get_vat_class( 'edit' ),
116
+                                    'placeholder'      => __('Select VAT class', 'invoicing'),
117
+                                    'value'            => $item->get_vat_class('edit'),
118 118
                                     'select2'          => true,
119 119
                                     'data-allow-clear' => 'false',
120 120
                                     'no_wrap'          => true,
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                         ?>
125 125
                     </div>
126 126
                     <div class="col-sm-1 pt-2 pl-0">
127
-                        <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e( 'Select the VAT rate class to use for this invoice item', 'invoicing' ); ?>"></span>
127
+                        <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e('Select the VAT rate class to use for this invoice item', 'invoicing'); ?>"></span>
128 128
                     </div>
129 129
                 </div>
130 130
 
Please login to merge, or discard this patch.
includes/admin/meta-boxes/class-mb-payment-form.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 // MUST have WordPress.
3
-if ( !defined( 'WPINC' ) ) {
4
-    exit( 'Do NOT access this file directly: ' . basename( __FILE__ ) );
3
+if (!defined('WPINC')) {
4
+    exit('Do NOT access this file directly: ' . basename(__FILE__));
5 5
 }
6 6
 
7 7
 class WPInv_Meta_Box_Payment_Form {
@@ -11,23 +11,23 @@  discard block
 block discarded – undo
11 11
      *
12 12
      * @param WP_Post $post
13 13
      */
14
-    public static function output_details( $post ) {
15
-        $details = get_post_meta( $post->ID, 'payment_form_data', true );
14
+    public static function output_details($post) {
15
+        $details = get_post_meta($post->ID, 'payment_form_data', true);
16 16
 
17
-        if ( ! is_array( $details ) ) {
17
+        if (!is_array($details)) {
18 18
             return;
19 19
         }
20 20
 
21 21
         echo '<div class="gdmbx2-wrap form-table"> <div class="gdmbx2-metabox gdmbx-field-list">';
22 22
 
23
-        foreach ( $details as $key => $value ) {
24
-            $key = sanitize_text_field( $key );
23
+        foreach ($details as $key => $value) {
24
+            $key = sanitize_text_field($key);
25 25
 
26
-            if ( is_array( $value ) ) {
27
-                $value = implode( ',', $value );
26
+            if (is_array($value)) {
27
+                $value = implode(',', $value);
28 28
             }
29 29
 
30
-            $value = esc_html( $value );
30
+            $value = esc_html($value);
31 31
 
32 32
             echo "<div class='gdmbx-row gdmbx-type-select'>";
33 33
             echo "<div class='gdmbx-th'><label>$key:</label></div>";
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
      *
44 44
      * @param WP_Post $post
45 45
      */
46
-    public static function output_shortcode( $post ) {
46
+    public static function output_shortcode($post) {
47 47
 
48
-        if ( ! is_numeric( $post ) ) {
48
+        if (!is_numeric($post)) {
49 49
             $post = $post->ID;
50 50
         }
51 51
 
52
-        if ( $post == wpinv_get_default_payment_form() ) {
52
+        if ($post == wpinv_get_default_payment_form()) {
53 53
             echo '&mdash;';
54 54
             return;
55 55
         }
Please login to merge, or discard this patch.
includes/data-stores/class-getpaid-data-store.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  *
5 5
  */
6 6
 
7
-defined( 'ABSPATH' ) || exit;
7
+defined('ABSPATH') || exit;
8 8
 
9 9
 /**
10 10
  * Data store class.
@@ -54,31 +54,31 @@  discard block
 block discarded – undo
54 54
 	 *
55 55
 	 * @param string $object_type Name of object.
56 56
 	 */
57
-	public function __construct( $object_type ) {
57
+	public function __construct($object_type) {
58 58
 		$this->object_type = $object_type;
59
-		$this->stores      = apply_filters( 'getpaid_data_stores', $this->stores );
59
+		$this->stores      = apply_filters('getpaid_data_stores', $this->stores);
60 60
 
61 61
 		// If this object type can't be found, check to see if we can load one
62 62
 		// level up (so if item-type isn't found, we try item).
63
-		if ( ! array_key_exists( $object_type, $this->stores ) ) {
64
-			$pieces      = explode( '-', $object_type );
63
+		if (!array_key_exists($object_type, $this->stores)) {
64
+			$pieces      = explode('-', $object_type);
65 65
 			$object_type = $pieces[0];
66 66
 		}
67 67
 
68
-		if ( array_key_exists( $object_type, $this->stores ) ) {
69
-			$store = apply_filters( 'getpaid_' . $object_type . '_data_store', $this->stores[ $object_type ] );
70
-			if ( is_object( $store ) ) {
71
-				$this->current_class_name = get_class( $store );
68
+		if (array_key_exists($object_type, $this->stores)) {
69
+			$store = apply_filters('getpaid_' . $object_type . '_data_store', $this->stores[$object_type]);
70
+			if (is_object($store)) {
71
+				$this->current_class_name = get_class($store);
72 72
 				$this->instance           = $store;
73 73
 			} else {
74
-				if ( ! class_exists( $store ) ) {
75
-					throw new Exception( __( 'Data store class does not exist.', 'invoicing' ) );
74
+				if (!class_exists($store)) {
75
+					throw new Exception(__('Data store class does not exist.', 'invoicing'));
76 76
 				}
77 77
 				$this->current_class_name = $store;
78 78
 				$this->instance           = new $store();
79 79
 			}
80 80
 		} else {
81
-			throw new Exception( __( 'Invalid data store.', 'invoicing' ) );
81
+			throw new Exception(__('Invalid data store.', 'invoicing'));
82 82
 		}
83 83
 	}
84 84
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	 * @return array
89 89
 	 */
90 90
 	public function __sleep() {
91
-		return array( 'object_type' );
91
+		return array('object_type');
92 92
 	}
93 93
 
94 94
 	/**
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	 * @throws Exception When validation fails.
98 98
 	 */
99 99
 	public function __wakeup() {
100
-		$this->__construct( $this->object_type );
100
+		$this->__construct($this->object_type);
101 101
 	}
102 102
 
103 103
 	/**
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
 	 * @throws Exception When validation fails.
110 110
 	 * @return GetPaid_Data_Store
111 111
 	 */
112
-	public static function load( $object_type ) {
113
-		return new GetPaid_Data_Store( $object_type );
112
+	public static function load($object_type) {
113
+		return new GetPaid_Data_Store($object_type);
114 114
 	}
115 115
 
116 116
 	/**
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
 	 * @since 1.0.19
140 140
 	 * @param GetPaid_Data $data GetPaid data instance.
141 141
 	 */
142
-	public function read( &$data ) {
143
-		$this->instance->read( $data );
142
+	public function read(&$data) {
143
+		$this->instance->read($data);
144 144
 	}
145 145
 
146 146
 	/**
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
149 149
 	 * @since 1.0.19
150 150
 	 * @param GetPaid_Data $data GetPaid data instance.
151 151
 	 */
152
-	public function create( &$data ) {
153
-		$this->instance->create( $data );
152
+	public function create(&$data) {
153
+		$this->instance->create($data);
154 154
 	}
155 155
 
156 156
 	/**
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
 	 * @since 1.0.19
160 160
 	 * @param GetPaid_Data $data GetPaid data instance.
161 161
 	 */
162
-	public function update( &$data ) {
163
-		$this->instance->update( $data );
162
+	public function update(&$data) {
163
+		$this->instance->update($data);
164 164
 	}
165 165
 
166 166
 	/**
@@ -170,8 +170,8 @@  discard block
 block discarded – undo
170 170
 	 * @param GetPaid_Data $data GetPaid data instance.
171 171
 	 * @param array   $args Array of args to pass to the delete method.
172 172
 	 */
173
-	public function delete( &$data, $args = array() ) {
174
-		$this->instance->delete( $data, $args );
173
+	public function delete(&$data, $args = array()) {
174
+		$this->instance->delete($data, $args);
175 175
 	}
176 176
 
177 177
 	/**
@@ -182,11 +182,11 @@  discard block
 block discarded – undo
182 182
 	 * @param string $method     Method.
183 183
 	 * @return mixed
184 184
 	 */
185
-	public function __call( $method, $parameters ) {
186
-		if ( is_callable( array( $this->instance, $method ) ) ) {
187
-			$object     = array_shift( $parameters );
188
-			$parameters = array_merge( array( &$object ), $parameters );
189
-			return call_user_func_array( array( $this->instance, $method ), $parameters );
185
+	public function __call($method, $parameters) {
186
+		if (is_callable(array($this->instance, $method))) {
187
+			$object     = array_shift($parameters);
188
+			$parameters = array_merge(array(&$object), $parameters);
189
+			return call_user_func_array(array($this->instance, $method), $parameters);
190 190
 		}
191 191
 	}
192 192
 
Please login to merge, or discard this patch.
templates/payment-forms/elements/alert.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,16 +7,16 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-if ( empty( $text ) ) {
12
+if (empty($text)) {
13 13
     return;
14 14
 }
15 15
 
16 16
 echo aui()->alert(
17 17
     array(
18
-        'content'     => wp_kses_post( $text ),
19
-        'dismissible' => ! empty( $dismissible ),
20
-        'type'        => empty( $class ) ? 'info' : str_replace( 'alert-', '', $class ),
18
+        'content'     => wp_kses_post($text),
19
+        'dismissible' => !empty($dismissible),
20
+        'type'        => empty($class) ? 'info' : str_replace('alert-', '', $class),
21 21
     )
22 22
 );
Please login to merge, or discard this patch.
templates/payment-forms/elements/separator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,6 +7,6 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 ?>
12 12
 <hr class="featurette-divider" />
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
templates/payment-forms/elements/heading.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-$tag  = isset( $element['level'] ) ? trim( $element['level'] ) : 'h3';
13
-$text = isset( $element['text'] ) ? trim( $element['text'] ) : '';
12
+$tag  = isset($element['level']) ? trim($element['level']) : 'h3';
13
+$text = isset($element['text']) ? trim($element['text']) : '';
14 14
 
15
-if ( ! empty( $text ) ) {
15
+if (!empty($text)) {
16 16
     echo "<$tag>$text</$tag>";
17 17
 }
Please login to merge, or discard this patch.
templates/payment-forms/elements/address.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -7,46 +7,46 @@  discard block
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-if ( empty( $fields ) ) {
12
+if (empty($fields)) {
13 13
     return;
14 14
 }
15 15
 
16 16
 // Prepare the user's country.
17
-$country = is_user_logged_in() ? get_user_meta( get_current_user_id(), '_wpinv_country', true ) : '';
18
-$country = empty( $country ) ? wpinv_get_default_country() : $country;
17
+$country = is_user_logged_in() ? get_user_meta(get_current_user_id(), '_wpinv_country', true) : '';
18
+$country = empty($country) ? wpinv_get_default_country() : $country;
19 19
 
20 20
 // A prefix for all ids (so that a form can be included in the same page multiple times).
21
-$uniqid = uniqid( '_' );
21
+$uniqid = uniqid('_');
22 22
 
23
-foreach ( $fields as $address_field ) {
23
+foreach ($fields as $address_field) {
24 24
 
25 25
     // Skip if it is hidden.
26
-    if ( empty( $address_field['visible'] ) ) {
26
+    if (empty($address_field['visible'])) {
27 27
         continue;
28 28
     }
29 29
 
30
-    $placeholder = empty( $address_field['placeholder'] ) ? '' : esc_attr( $address_field['placeholder'] );
31
-    $description = empty( $address_field['description'] ) ? '' : wp_kses_post( $address_field['description'] );
32
-    $value       = is_user_logged_in() ? get_user_meta( get_current_user_id(), '_' . $address_field['name'], true ) : '';
33
-    $label       = empty( $address_field['label'] ) ? '' : wp_kses_post( $address_field['label'] );
30
+    $placeholder = empty($address_field['placeholder']) ? '' : esc_attr($address_field['placeholder']);
31
+    $description = empty($address_field['description']) ? '' : wp_kses_post($address_field['description']);
32
+    $value       = is_user_logged_in() ? get_user_meta(get_current_user_id(), '_' . $address_field['name'], true) : '';
33
+    $label       = empty($address_field['label']) ? '' : wp_kses_post($address_field['label']);
34 34
 
35
-    if ( ! empty( $address_field['required'] ) ) {
35
+    if (!empty($address_field['required'])) {
36 36
         $label .= "<span class='text-danger'> *</span>";
37 37
     }
38 38
 
39 39
     // Display the country.
40
-    if ( 'wpinv_country' == $address_field['name'] ) {
40
+    if ('wpinv_country' == $address_field['name']) {
41 41
 
42
-        echo aui()->select( array(
42
+        echo aui()->select(array(
43 43
             'options'          => wpinv_get_country_list(),
44 44
             'name'             => 'wpinv_country',
45 45
             'id'               => 'wpinv_country' . $uniqid,
46
-            'value'            => sanitize_text_field( $country ),
46
+            'value'            => sanitize_text_field($country),
47 47
             'placeholder'      => $placeholder,
48
-            'required'         => ! empty( $address_field['required'] ),
49
-            'label'            => wp_kses_post( $label ),
48
+            'required'         => !empty($address_field['required']),
49
+            'label'            => wp_kses_post($label),
50 50
             'label_type'       => 'vertical',
51 51
             'help_text'        => $description,
52 52
             'class'            => 'wpinv_country',
@@ -56,24 +56,24 @@  discard block
 block discarded – undo
56 56
     }
57 57
 
58 58
     // Display the state.
59
-    if ( 'wpinv_state' == $address_field['name'] ) {
59
+    if ('wpinv_state' == $address_field['name']) {
60 60
 
61
-        $states = wpinv_get_country_states( $country );
61
+        $states = wpinv_get_country_states($country);
62 62
 
63
-        if ( empty( $value ) ) {
63
+        if (empty($value)) {
64 64
             $value = wpinv_get_default_state();
65 65
         }
66 66
 
67
-        if ( ! empty( $states ) ) {
67
+        if (!empty($states)) {
68 68
 
69
-            echo aui()->select( array(
69
+            echo aui()->select(array(
70 70
                 'options'          => $states,
71 71
                 'name'             => 'wpinv_state',
72 72
                 'id'               => 'wpinv_state' . $uniqid,
73
-                'value'            => sanitize_text_field( $value ),
73
+                'value'            => sanitize_text_field($value),
74 74
                 'placeholder'      => $placeholder,
75
-                'required'         => ! empty( $address_field['required'] ),
76
-                'label'            => wp_kses_post( $label ),
75
+                'required'         => !empty($address_field['required']),
76
+                'label'            => wp_kses_post($label),
77 77
                 'label_type'       => 'vertical',
78 78
                 'help_text'        => $description,
79 79
                 'class'            => 'wpinv_state',
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
                 'name'       => 'wpinv_state',
89 89
                 'id'         => 'wpinv_state' . $uniqid,
90 90
                 'placeholder'=> $placeholder,
91
-                'required'   => ! empty( $address_field['required'] ),
92
-                'label'      => wp_kses_post( $label ),
91
+                'required'   => !empty($address_field['required']),
92
+                'label'      => wp_kses_post($label),
93 93
                 'label_type' => 'vertical',
94 94
                 'help_text'  => $description,
95 95
                 'value'      => $value,
@@ -101,16 +101,16 @@  discard block
 block discarded – undo
101 101
 
102 102
     echo aui()->input(
103 103
         array(
104
-            'name'       => esc_attr( $address_field['name'] ),
105
-            'id'         => esc_attr( $address_field['name'] ) . $uniqid,
106
-            'required'   => ! empty( $address_field['required'] ),
104
+            'name'       => esc_attr($address_field['name']),
105
+            'id'         => esc_attr($address_field['name']) . $uniqid,
106
+            'required'   => !empty($address_field['required']),
107 107
             'placeholder'=> $placeholder,
108
-            'label'      => wp_kses_post( $label ),
108
+            'label'      => wp_kses_post($label),
109 109
             'label_type' => 'vertical',
110 110
             'help_text'  => $description,
111 111
             'type'       => 'text',
112 112
             'value'      => $value,
113
-            'class'      => esc_attr( $address_field['name'] ),
113
+            'class'      => esc_attr($address_field['name']),
114 114
         )
115 115
     );
116 116
 
Please login to merge, or discard this patch.
templates/payment-forms/elements/discount.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,12 +7,12 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-$placeholder = esc_attr( $input_label );
13
-$label       = sanitize_text_field( $button_label );
12
+$placeholder = esc_attr($input_label);
13
+$label       = sanitize_text_field($button_label);
14 14
 
15
-if ( ! empty( $description ) ) {
15
+if (!empty($description)) {
16 16
     $description = "<small class='form-text text-muted'>$description</small>";
17 17
 } else {
18 18
     $description = '';
Please login to merge, or discard this patch.
templates/payment-forms/elements/paragraph.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-$text = isset( $element['text'] ) ? trim( $element['text'] ) : '';
12
+$text = isset($element['text']) ? trim($element['text']) : '';
13 13
 
14
-if ( ! empty( $text ) ) {
14
+if (!empty($text)) {
15 15
     echo "<p>$text</p>";
16 16
 }
Please login to merge, or discard this patch.