Passed
Push — master ( 0a2cdb...97ebee )
by Brian
04:41
created
templates/payment-forms/elements/date.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -12,57 +12,57 @@
 block discarded – undo
12 12
 $label       = empty( $label ) ? '' : wp_kses_post( $label );
13 13
 $label_class = sanitize_key( preg_replace( '/[^A-Za-z0-9_-]/', '-', $label ) );
14 14
 if ( ! empty( $required ) ) {
15
-	$label .= "<span class='text-danger'> *</span>";
15
+    $label .= "<span class='text-danger'> *</span>";
16 16
 }
17 17
 
18 18
 $disable_dates = array();
19 19
 
20 20
 if ( ! empty( $disabled_dates ) ) {
21
-	$disabled_dates = preg_replace( '/\s+/', '', $disabled_dates );
22
-	$disabled_dates = str_ireplace( 'today', current_time( 'Y-m-d' ), $disabled_dates );
23
-	$disabled_dates = array_filter( explode( ',', $disabled_dates ) );
21
+    $disabled_dates = preg_replace( '/\s+/', '', $disabled_dates );
22
+    $disabled_dates = str_ireplace( 'today', current_time( 'Y-m-d' ), $disabled_dates );
23
+    $disabled_dates = array_filter( explode( ',', $disabled_dates ) );
24 24
 
25
-	foreach ( $disabled_dates as $disabled_date ) {
25
+    foreach ( $disabled_dates as $disabled_date ) {
26 26
 
27
-		$disabled_date = trim( $disabled_date );
27
+        $disabled_date = trim( $disabled_date );
28 28
 
29
-		if ( false === strpos( $disabled_date, '|' ) ) {
30
-			$disable_dates[] = $disabled_date;
31
-			continue;
32
-		}
29
+        if ( false === strpos( $disabled_date, '|' ) ) {
30
+            $disable_dates[] = $disabled_date;
31
+            continue;
32
+        }
33 33
 
34
-		$disabled_date   = explode( '|', $disabled_date );
35
-		$disable_dates[] = array(
36
-			'from' => trim( $disabled_date[0] ),
37
-			'to'   => trim( $disabled_date[1] ),
38
-		);
34
+        $disabled_date   = explode( '|', $disabled_date );
35
+        $disable_dates[] = array(
36
+            'from' => trim( $disabled_date[0] ),
37
+            'to'   => trim( $disabled_date[1] ),
38
+        );
39 39
 
40
-	}
40
+    }
41 41
 }
42 42
 
43 43
 $options = array(
44
-	'data-default-date'     => empty( 'default_date' ) ? false : $default_date,
45
-	'data-min-date'         => empty( 'min_date' ) ? false : $min_date,
46
-	'data-max-date'         => empty( 'max_date' ) ? false : $max_date,
47
-	'data-mode'             => empty( 'mode' ) ? 'single' : $mode,
48
-	'data-alt-format'       => get_option( 'date_format', 'F j, Y' ),
49
-	'data-date-format'      => 'Y-m-d',
50
-	'data-alt-input'        => 'true',
51
-	'data-disable_alt'      => empty( $disabled_dates ) ? false : wp_json_encode( $disable_dates ),
52
-	'data-disable_days_alt' => empty( $disable_days ) ? false : wp_json_encode( wp_parse_id_list( $disable_days ) ),
44
+    'data-default-date'     => empty( 'default_date' ) ? false : $default_date,
45
+    'data-min-date'         => empty( 'min_date' ) ? false : $min_date,
46
+    'data-max-date'         => empty( 'max_date' ) ? false : $max_date,
47
+    'data-mode'             => empty( 'mode' ) ? 'single' : $mode,
48
+    'data-alt-format'       => get_option( 'date_format', 'F j, Y' ),
49
+    'data-date-format'      => 'Y-m-d',
50
+    'data-alt-input'        => 'true',
51
+    'data-disable_alt'      => empty( $disabled_dates ) ? false : wp_json_encode( $disable_dates ),
52
+    'data-disable_days_alt' => empty( $disable_days ) ? false : wp_json_encode( wp_parse_id_list( $disable_days ) ),
53 53
 );
54 54
 
55 55
 echo aui()->input(
56
-	array(
57
-		'name'             => esc_attr( $id ),
58
-		'id'               => esc_attr( $id ) . uniqid( '_' ),
59
-		'placeholder'      => empty( $placeholder ) ? '' : esc_attr( $placeholder ),
60
-		'required'         => ! empty( $required ),
61
-		'label'            => $label,
62
-		'label_type'       => 'vertical',
63
-		'help_text'        => empty( $description ) ? '' : wp_kses_post( $description ),
64
-		'type'             => 'datepicker',
65
-		'class'            => $label_class . ' getpaid-init-flatpickr flatpickr-input',
66
-		'extra_attributes' => array_filter( apply_filters( 'getpaid_date_field_attributes', $options ) ),
67
-	)
56
+    array(
57
+        'name'             => esc_attr( $id ),
58
+        'id'               => esc_attr( $id ) . uniqid( '_' ),
59
+        'placeholder'      => empty( $placeholder ) ? '' : esc_attr( $placeholder ),
60
+        'required'         => ! empty( $required ),
61
+        'label'            => $label,
62
+        'label_type'       => 'vertical',
63
+        'help_text'        => empty( $description ) ? '' : wp_kses_post( $description ),
64
+        'type'             => 'datepicker',
65
+        'class'            => $label_class . ' getpaid-init-flatpickr flatpickr-input',
66
+        'extra_attributes' => array_filter( apply_filters( 'getpaid_date_field_attributes', $options ) ),
67
+    )
68 68
 );
Please login to merge, or discard this patch.
templates/payment-forms/cart-item.php 1 patch
Indentation   +113 added lines, -113 removed lines patch added patch discarded remove patch
@@ -26,58 +26,58 @@  discard block
 block discarded – undo
26 26
 
27 27
 				<?php
28 28
 
29
-					// Fires before printing a line item column.
30
-					do_action( "getpaid_form_cart_item_before_$key", $item, $form );
31
-
32
-					// Item name.
33
-					if ( 'name' == $key ) {
34
-
35
-					ob_start();
36
-					// And an optional description.
37
-					$description = $item->get_description();
38
-
39
-					if ( ! empty( $description ) ) {
40
-						$description = wp_kses_post( $description );
41
-						echo "<small class='form-text text-muted pr-2 m-0'>$description</small>";
42
-						}
43
-
44
-					// Price help text.
45
-					$description = getpaid_item_recurring_price_help_text( $item, $currency );
46
-					if ( $description ) {
47
-						echo "<small class='getpaid-form-item-price-desc form-text text-muted pr-2 m-0'>$description</small>";
48
-						}
49
-
50
-					do_action( 'getpaid_payment_form_cart_item_description', $item, $form );
51
-
52
-					if ( wpinv_current_user_can_manage_invoicing() ) {
53
-
54
-						edit_post_link(
55
-							__( 'Edit this item.', 'invoicing' ),
56
-							'<small class="form-text text-muted">',
57
-							'</small>',
58
-							$item->get_id(),
59
-							'text-danger'
60
-						);
61
-
62
-					}
63
-
64
-					$description = ob_get_clean();
65
-
66
-					// Display the name.
67
-					$tootip = empty( $description ) ? '' : '&nbsp;' . '<i class="fas fa-xs fa-info gp-tooltip d-sm-none text-muted"></i>';
68
-					echo '<div class="mb-1">' . esc_html( $item->get_name() ) . wp_kses_post( $tootip ) . '</div>';
69
-
70
-					if ( ! empty( $description ) ) {
71
-						printf( '<span class="d-none d-sm-block getpaid-item-desc">%s</span>', $description );
72
-						}
73
-
74
-					if ( $item->allows_quantities() ) {
75
-						printf(
76
-							'<small class="d-sm-none text-muted form-text">%s</small>',
77
-							sprintf(
78
-								__( 'Qty %s', 'invoicing' ),
79
-								sprintf(
80
-									'<input
29
+                    // Fires before printing a line item column.
30
+                    do_action( "getpaid_form_cart_item_before_$key", $item, $form );
31
+
32
+                    // Item name.
33
+                    if ( 'name' == $key ) {
34
+
35
+                    ob_start();
36
+                    // And an optional description.
37
+                    $description = $item->get_description();
38
+
39
+                    if ( ! empty( $description ) ) {
40
+                        $description = wp_kses_post( $description );
41
+                        echo "<small class='form-text text-muted pr-2 m-0'>$description</small>";
42
+                        }
43
+
44
+                    // Price help text.
45
+                    $description = getpaid_item_recurring_price_help_text( $item, $currency );
46
+                    if ( $description ) {
47
+                        echo "<small class='getpaid-form-item-price-desc form-text text-muted pr-2 m-0'>$description</small>";
48
+                        }
49
+
50
+                    do_action( 'getpaid_payment_form_cart_item_description', $item, $form );
51
+
52
+                    if ( wpinv_current_user_can_manage_invoicing() ) {
53
+
54
+                        edit_post_link(
55
+                            __( 'Edit this item.', 'invoicing' ),
56
+                            '<small class="form-text text-muted">',
57
+                            '</small>',
58
+                            $item->get_id(),
59
+                            'text-danger'
60
+                        );
61
+
62
+                    }
63
+
64
+                    $description = ob_get_clean();
65
+
66
+                    // Display the name.
67
+                    $tootip = empty( $description ) ? '' : '&nbsp;' . '<i class="fas fa-xs fa-info gp-tooltip d-sm-none text-muted"></i>';
68
+                    echo '<div class="mb-1">' . esc_html( $item->get_name() ) . wp_kses_post( $tootip ) . '</div>';
69
+
70
+                    if ( ! empty( $description ) ) {
71
+                        printf( '<span class="d-none d-sm-block getpaid-item-desc">%s</span>', $description );
72
+                        }
73
+
74
+                    if ( $item->allows_quantities() ) {
75
+                        printf(
76
+                            '<small class="d-sm-none text-muted form-text">%s</small>',
77
+                            sprintf(
78
+                                __( 'Qty %s', 'invoicing' ),
79
+                                sprintf(
80
+                                    '<input
81 81
 											type="number"
82 82
 											step="0.01"
83 83
 											style="width: 48px;"
@@ -87,53 +87,53 @@  discard block
 block discarded – undo
87 87
 											%s>',
88 88
                                     (float) $item->get_quantity() == 0 ? 1 : (float) $item->get_quantity(),
89 89
                                     null !== $max_qty ? 'max="' . (float) $max_qty . '"' : ''
90
-								)
91
-							)
92
-						);
93
-					} else {
94
-						printf(
95
-							'<small class="d-sm-none text-muted form-text">%s</small>',
96
-							sprintf(
97
-								__( 'Qty %s', 'invoicing' ),
98
-								(float) $item->get_quantity()
99
-							)
100
-						);
101
-						}
90
+                                )
91
+                            )
92
+                        );
93
+                    } else {
94
+                        printf(
95
+                            '<small class="d-sm-none text-muted form-text">%s</small>',
96
+                            sprintf(
97
+                                __( 'Qty %s', 'invoicing' ),
98
+                                (float) $item->get_quantity()
99
+                            )
100
+                        );
101
+                        }
102 102
 }
103 103
 
104
-					// Item price.
105
-					if ( 'price' == $key ) {
104
+                    // Item price.
105
+                    if ( 'price' == $key ) {
106 106
 
107
-					// Set the currency position.
108
-					$position = wpinv_currency_position();
107
+                    // Set the currency position.
108
+                    $position = wpinv_currency_position();
109 109
 
110
-					if ( $position == 'left_space' ) {
111
-						$position = 'left';
112
-						}
110
+                    if ( $position == 'left_space' ) {
111
+                        $position = 'left';
112
+                        }
113 113
 
114
-					if ( $position == 'right_space' ) {
115
-						$position = 'right';
116
-						}
114
+                    if ( $position == 'right_space' ) {
115
+                        $position = 'right';
116
+                        }
117 117
 
118
-					if ( $item->user_can_set_their_price() ) {
119
-						$price            = max( (float) $item->get_price(), (float) $item->get_minimum_price() );
120
-						$minimum          = (float) $item->get_minimum_price();
121
-						$validate_minimum = '';
122
-						$class            = '';
123
-						$data_minimum     = '';
118
+                    if ( $item->user_can_set_their_price() ) {
119
+                        $price            = max( (float) $item->get_price(), (float) $item->get_minimum_price() );
120
+                        $minimum          = (float) $item->get_minimum_price();
121
+                        $validate_minimum = '';
122
+                        $class            = '';
123
+                        $data_minimum     = '';
124 124
 
125
-						if ( $minimum > 0 ) {
126
-							$validate_minimum = sprintf(
127
-								esc_attr__( 'The minimum allowed amount is %s', 'invoicing' ),
128
-								strip_tags( wpinv_price( $minimum, $currency ) )
129
-							);
125
+                        if ( $minimum > 0 ) {
126
+                            $validate_minimum = sprintf(
127
+                                esc_attr__( 'The minimum allowed amount is %s', 'invoicing' ),
128
+                                strip_tags( wpinv_price( $minimum, $currency ) )
129
+                            );
130 130
 
131
-							$class = 'getpaid-validate-minimum-amount';
131
+                            $class = 'getpaid-validate-minimum-amount';
132 132
 
133
-							$data_minimum     = "data-minimum-amount='" . esc_attr( getpaid_unstandardize_amount( $minimum ) ) . "'";
134
-						}
133
+                            $data_minimum     = "data-minimum-amount='" . esc_attr( getpaid_unstandardize_amount( $minimum ) ) . "'";
134
+                        }
135 135
 
136
-						?>
136
+                        ?>
137 137
 								<div class="input-group input-group-sm">
138 138
 								<?php if ( 'left' == $position ) : ?>
139 139
 										<div class="input-group-prepend">
@@ -158,43 +158,43 @@  discard block
 block discarded – undo
158 158
 
159 159
 							<?php
160 160
 
161
-						} else {
162
-						echo wpinv_price( $item->get_price(), $currency );
161
+                        } else {
162
+                        echo wpinv_price( $item->get_price(), $currency );
163 163
 
164
-						?>
164
+                        ?>
165 165
 								<input name='getpaid-items[<?php echo (int) $item->get_id(); ?>][price]' type='hidden' class='getpaid-item-price-input' value='<?php echo esc_attr( $item->get_price() ); ?>'>
166 166
 						<?php
167
-						}
167
+                        }
168 168
 
169
-					printf(
170
-					'<small class="d-sm-none text-muted form-text getpaid-mobile-item-subtotal">%s</small>',
171
-					sprintf( __( 'Subtotal: %s', 'invoicing' ), wpinv_price( $item->get_sub_total(), $currency ) )
172
-				);
173
-					}
169
+                    printf(
170
+                    '<small class="d-sm-none text-muted form-text getpaid-mobile-item-subtotal">%s</small>',
171
+                    sprintf( __( 'Subtotal: %s', 'invoicing' ), wpinv_price( $item->get_sub_total(), $currency ) )
172
+                );
173
+                    }
174 174
 
175
-					// Item quantity.
176
-					if ( 'quantity' == $key ) {
175
+                    // Item quantity.
176
+                    if ( 'quantity' == $key ) {
177 177
 
178
-					if ( $item->allows_quantities() ) {
179
-						?>
178
+                    if ( $item->allows_quantities() ) {
179
+                        ?>
180 180
 								<input name='getpaid-items[<?php echo (int) $item->get_id(); ?>][quantity]' type="number" step="0.01" style='width: 64px; line-height: 1; min-height: 35px;' class='getpaid-item-quantity-input p-1 align-middle font-weight-normal shadow-none m-0 rounded-0 text-center border' value='<?php echo (float) $item->get_quantity() == 0 ? 1 : (float) $item->get_quantity(); ?>' min='1' <?php echo null !== $max_qty ? 'max="' . (float) $max_qty . '"' : ''; ?> required>
181 181
 							<?php
182
-						} else {
183
-						echo (float) $item->get_quantity();
184
-						echo '&nbsp;&nbsp;&nbsp;';
185
-						?>
182
+                        } else {
183
+                        echo (float) $item->get_quantity();
184
+                        echo '&nbsp;&nbsp;&nbsp;';
185
+                        ?>
186 186
 								<input type='hidden' name='getpaid-items[<?php echo (int) $item->get_id(); ?>][quantity]' class='getpaid-item-quantity-input' value='<?php echo (float) $item->get_quantity(); ?>'>
187 187
 						<?php
188
-						}
188
+                        }
189 189
 }
190 190
 
191
-					// Item sub total.
192
-					if ( 'subtotal' == $key ) {
193
-					echo wpinv_price( $item->get_sub_total(), $currency );
194
-					}
191
+                    // Item sub total.
192
+                    if ( 'subtotal' == $key ) {
193
+                    echo wpinv_price( $item->get_sub_total(), $currency );
194
+                    }
195 195
 
196
-					do_action( "getpaid_payment_form_cart_item_$key", $item, $form );
197
-				?>
196
+                    do_action( "getpaid_payment_form_cart_item_$key", $item, $form );
197
+                ?>
198 198
 
199 199
 			</div>
200 200
 
Please login to merge, or discard this patch.
templates/payment-forms/cart-totals.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -11,26 +11,26 @@  discard block
 block discarded – undo
11 11
 
12 12
 // Totals rows.
13 13
 $totals = apply_filters(
14
-	'getpaid_payment_form_cart_table_totals',
15
-	array(
16
-		'subtotal' => __( 'Subtotal', 'invoicing' ),
17
-		'tax'      => __( 'Tax', 'invoicing' ),
18
-		'fees'     => __( 'Fee', 'invoicing' ),
19
-		'discount' => __( 'Discount', 'invoicing' ),
20
-		'total'    => __( 'Total', 'invoicing' ),
21
-	),
22
-	$form
14
+    'getpaid_payment_form_cart_table_totals',
15
+    array(
16
+        'subtotal' => __( 'Subtotal', 'invoicing' ),
17
+        'tax'      => __( 'Tax', 'invoicing' ),
18
+        'fees'     => __( 'Fee', 'invoicing' ),
19
+        'discount' => __( 'Discount', 'invoicing' ),
20
+        'total'    => __( 'Total', 'invoicing' ),
21
+    ),
22
+    $form
23 23
 );
24 24
 
25 25
 $currency = $form->get_currency();
26 26
 $country  = wpinv_get_default_country();
27 27
 
28 28
 if ( ! empty( $form->invoice ) ) {
29
-	$country  = $form->invoice->get_country();
29
+    $country  = $form->invoice->get_country();
30 30
 }
31 31
 
32 32
 if ( ! wpinv_use_taxes() && isset( $totals['tax'] ) ) {
33
-	unset( $totals['tax'] );
33
+    unset( $totals['tax'] );
34 34
 }
35 35
 
36 36
 do_action( 'getpaid_before_payment_form_cart_totals', $form, $totals );
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
 
62 62
 							<?php
63 63
 
64
-								// Total tax.
65
-								if ( in_array( $key, array( 'tax', 'discount', 'subtotal', 'total', 'fees' ) ) ) {
66
-								echo wpinv_price( 0, $currency );
67
-								}
64
+                                // Total tax.
65
+                                if ( in_array( $key, array( 'tax', 'discount', 'subtotal', 'total', 'fees' ) ) ) {
66
+                                echo wpinv_price( 0, $currency );
67
+                                }
68 68
 
69
-								do_action( "getpaid_payment_form_cart_totals_$key", $form );
70
-							?>
69
+                                do_action( "getpaid_payment_form_cart_totals_$key", $form );
70
+                            ?>
71 71
 
72 72
 						</div>
73 73
 
Please login to merge, or discard this patch.
templates/payment-forms/embed.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -1,32 +1,32 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-	// Is the request set up correctly?
4
-	if ( empty( $_GET['form'] ) && empty( $_GET['item'] ) ) {
5
-	return aui()->alert(
6
-	array(
3
+    // Is the request set up correctly?
4
+    if ( empty( $_GET['form'] ) && empty( $_GET['item'] ) ) {
5
+    return aui()->alert(
6
+    array(
7 7
         'type'    => 'warning',
8 8
         'content' => __( 'No payment form or item selected', 'invoicing' ),
9
-	)
9
+    )
10 10
 );
11 11
 wp_die( __( 'No payment form or item selected', 'invoicing' ), 400 );
12
-	}
12
+    }
13 13
 
14
-	// Payment form or button?
15
-	if ( ! empty( $_GET['form'] ) ) {
14
+    // Payment form or button?
15
+    if ( ! empty( $_GET['form'] ) ) {
16 16
 
17
-	$shortcode = sprintf(
18
-	'[getpaid form=%s]',
19
-	(int) $_GET['form']
17
+    $shortcode = sprintf(
18
+    '[getpaid form=%s]',
19
+    (int) $_GET['form']
20 20
 );
21 21
 
22
-	} else {
22
+    } else {
23 23
 
24
-	$shortcode = sprintf(
25
-	'[getpaid item=%s]',
26
-	esc_attr( urldecode( $_GET['item'] ) )
27
-	);
24
+    $shortcode = sprintf(
25
+    '[getpaid item=%s]',
26
+    esc_attr( urldecode( $_GET['item'] ) )
27
+    );
28 28
 
29
-	}
29
+    }
30 30
 
31 31
 ?>
32 32
 
@@ -44,12 +44,12 @@  discard block
 block discarded – undo
44 44
 
45 45
         <title>GetPaid</title>
46 46
 		<?php
47
-			wp_enqueue_scripts();
48
-			wp_print_styles();
49
-			wp_print_head_scripts();
50
-			wp_custom_css_cb();
51
-			wpinv_get_template( 'frontend-head.php' );
52
-		?>
47
+            wp_enqueue_scripts();
48
+            wp_print_styles();
49
+            wp_print_head_scripts();
50
+            wp_custom_css_cb();
51
+            wpinv_get_template( 'frontend-head.php' );
52
+        ?>
53 53
 
54 54
 		<style type="text/css">
55 55
 			.body{ 
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
 	<body class="body page-template-default page">
84 84
 		<div id="getpaid-form-embed" class="container my-5 page type-page status-publish hentry post post-content">
85 85
 			<?php
86
-				do_action( 'getpaid_payment_form_embed_top' );
87
-				echo do_shortcode( $shortcode );
88
-				do_action( 'getpaid_payment_form_embed_bottom' );
89
-				wpinv_get_template( 'frontend-footer.php' );
90
-			?>
86
+                do_action( 'getpaid_payment_form_embed_top' );
87
+                echo do_shortcode( $shortcode );
88
+                do_action( 'getpaid_payment_form_embed_bottom' );
89
+                wpinv_get_template( 'frontend-footer.php' );
90
+            ?>
91 91
 		</div>
92 92
 		<?php wp_footer(); ?>
93 93
 	</body>
Please login to merge, or discard this patch.
templates/payment-forms/form.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
         // And the optional invoice id.
48 48
         if ( ! empty( $form->invoice ) ) {
49
-		echo getpaid_hidden_field( 'invoice_id', $form->invoice->get_id() );
49
+        echo getpaid_hidden_field( 'invoice_id', $form->invoice->get_id() );
50 50
         }
51 51
 
52 52
         // We also want to include the form id.
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
 
67 67
                     foreach ( $form->get_elements() as $element ) {
68 68
 
69
-					if ( isset( $element['type'] ) ) {
70
-						$grid_class = esc_attr( getpaid_get_form_element_grid_class( $element ) );
71
-						echo "<div class='$grid_class'>";
72
-						do_action( 'getpaid_payment_form_element', $element, $form );
73
-						do_action( "getpaid_payment_form_element_{$element['type']}_template", $element, $form );
74
-						echo '</div>';
69
+                    if ( isset( $element['type'] ) ) {
70
+                        $grid_class = esc_attr( getpaid_get_form_element_grid_class( $element ) );
71
+                        echo "<div class='$grid_class'>";
72
+                        do_action( 'getpaid_payment_form_element', $element, $form );
73
+                        do_action( "getpaid_payment_form_element_{$element['type']}_template", $element, $form );
74
+                        echo '</div>';
75 75
                         }
76 76
 }
77 77
 
Please login to merge, or discard this patch.
templates/payment-forms/cart.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
             // Display the item totals.
46 46
             foreach ( $form->get_items() as $item ) {
47
-			wpinv_get_template( 'payment-forms/cart-item.php', compact( 'form', 'item', 'columns' ) );
47
+            wpinv_get_template( 'payment-forms/cart-item.php', compact( 'form', 'item', 'columns' ) );
48 48
             }
49 49
 
50 50
             // Display the cart totals.
Please login to merge, or discard this patch.
templates/emails/invoice-items.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@
 block discarded – undo
44 44
 
45 45
                 // Display the item totals.
46 46
                 foreach ( $invoice->get_items() as $item ) {
47
-				wpinv_get_template( 'emails/invoice-item.php', compact( 'invoice', 'item', 'columns' ) );
47
+                wpinv_get_template( 'emails/invoice-item.php', compact( 'invoice', 'item', 'columns' ) );
48 48
                 }
49 49
 
50 50
                 // Display the fee totals.
51 51
                 foreach ( $invoice->get_fees() as $fee ) {
52
-				wpinv_get_template( 'emails/fee-item.php', compact( 'invoice', 'fee', 'columns' ) );
52
+                wpinv_get_template( 'emails/fee-item.php', compact( 'invoice', 'fee', 'columns' ) );
53 53
                 }
54 54
 
55 55
             ?>
Please login to merge, or discard this patch.
templates/emails/wpinv-email-billing-details.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 <a href="<?php echo esc_url( add_query_arg( 'user_id', $invoice->get_user_id(), self_admin_url( 'user-edit.php' ) ) ); ?>"><?php echo esc_html( $invoice->get_user_full_name() ); ?></a>
21 21
                     <?php
22 22
 } else {
23
-					echo esc_html( $invoice->get_user_full_name() ); }
23
+                    echo esc_html( $invoice->get_user_full_name() ); }
24 24
 ?>
25 25
 </td>
26 26
             </tr>
Please login to merge, or discard this patch.
templates/emails/invoice-totals.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,26 +45,26 @@
 block discarded – undo
45 45
 
46 46
                 // Total tax.
47 47
                 if ( 'tax' == $key ) {
48
-				echo wpinv_price( $invoice->get_total_tax(), $invoice->get_currency() );
48
+                echo wpinv_price( $invoice->get_total_tax(), $invoice->get_currency() );
49 49
                 }
50 50
 
51 51
                 if ( 'fee' == $key ) {
52
-				echo wpinv_price( $invoice->get_total_fees(), $invoice->get_currency() );
52
+                echo wpinv_price( $invoice->get_total_fees(), $invoice->get_currency() );
53 53
                 }
54 54
 
55 55
                 // Total discount.
56 56
                 if ( 'discount' == $key ) {
57
-				echo wpinv_price( $invoice->get_total_discount(), $invoice->get_currency() );
57
+                echo wpinv_price( $invoice->get_total_discount(), $invoice->get_currency() );
58 58
                 }
59 59
 
60 60
                 // Sub total.
61 61
                 if ( 'subtotal' == $key ) {
62
-				echo wpinv_price( $invoice->get_subtotal(), $invoice->get_currency() );
62
+                echo wpinv_price( $invoice->get_subtotal(), $invoice->get_currency() );
63 63
                 }
64 64
 
65 65
                 // Total.
66 66
                 if ( 'total' == $key ) {
67
-				echo wpinv_price( $invoice->get_total(), $invoice->get_currency() );
67
+                echo wpinv_price( $invoice->get_total(), $invoice->get_currency() );
68 68
                 }
69 69
 
70 70
                 // Fires when printing a cart total in an email.
Please login to merge, or discard this patch.