Passed
Push — master ( 2632ed...8bf7c9 )
by Brian
05:05
created
templates/payment-forms/elements/select.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -7,23 +7,23 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-$label = empty( $label ) ? '' : wp_kses_post( $label );
12
+$label = empty($label) ? '' : wp_kses_post($label);
13 13
 
14
-if ( ! empty( $required ) ) {
14
+if (!empty($required)) {
15 15
     $label .= "<span class='text-danger'> *</span>";
16 16
 }
17 17
 
18 18
 echo aui()->select(
19 19
     array(
20
-        'name'       => esc_attr( $id ),
21
-        'id'         => esc_attr( $id ) . uniqid( '_' ),
22
-        'placeholder'=> empty( $placeholder ) ? '' : esc_attr( $placeholder ),
23
-        'required'   => ! empty( $required ),
20
+        'name'       => esc_attr($id),
21
+        'id'         => esc_attr($id) . uniqid('_'),
22
+        'placeholder'=> empty($placeholder) ? '' : esc_attr($placeholder),
23
+        'required'   => !empty($required),
24 24
         'label'      => $label,
25 25
         'label_type' => 'vertical',
26
-        'help_text'  => empty( $description ) ? '' : wp_kses_post( $description ),
27
-        'options'    => empty( $options ) ? array() : array_combine( $options, $options ),
26
+        'help_text'  => empty($description) ? '' : wp_kses_post($description),
27
+        'options'    => empty($options) ? array() : array_combine($options, $options),
28 28
     )
29 29
 );
Please login to merge, or discard this patch.
templates/payment-forms/elements/website.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,23 +7,23 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-$label = empty( $label ) ? '' : wp_kses_post( $label );
12
+$label = empty($label) ? '' : wp_kses_post($label);
13 13
 
14
-if ( ! empty( $required ) ) {
14
+if (!empty($required)) {
15 15
     $label .= "<span class='text-danger'> *</span>";
16 16
 }
17 17
 
18 18
 echo aui()->input(
19 19
     array(
20
-        'name'       => esc_attr( $id ),
21
-        'id'         => esc_attr( $id ) . uniqid( '_' ),
22
-        'placeholder'=> empty( $placeholder ) ? '' : esc_attr( $placeholder ),
23
-        'required'   => ! empty( $required ),
20
+        'name'       => esc_attr($id),
21
+        'id'         => esc_attr($id) . uniqid('_'),
22
+        'placeholder'=> empty($placeholder) ? '' : esc_attr($placeholder),
23
+        'required'   => !empty($required),
24 24
         'label'      => $label,
25 25
         'label_type' => 'vertical',
26
-        'help_text'  => empty( $description ) ? '' : wp_kses_post( $description ),
26
+        'help_text'  => empty($description) ? '' : wp_kses_post($description),
27 27
         'type'       => 'url',
28 28
     )
29 29
 );
Please login to merge, or discard this patch.
templates/payment-forms/elements/email.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,23 +7,23 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-$label = empty( $label ) ? '' : wp_kses_post( $label );
12
+$label = empty($label) ? '' : wp_kses_post($label);
13 13
 
14
-if ( ! empty( $required ) ) {
14
+if (!empty($required)) {
15 15
     $label .= "<span class='text-danger'> *</span>";
16 16
 }
17 17
 
18 18
 echo aui()->input(
19 19
     array(
20
-        'name'       => esc_attr( $id ),
21
-        'id'         => esc_attr( $id ) . uniqid( '_' ),
22
-        'placeholder'=> empty( $placeholder ) ? '' : esc_attr( $placeholder ),
23
-        'required'   => ! empty( $required ),
20
+        'name'       => esc_attr($id),
21
+        'id'         => esc_attr($id) . uniqid('_'),
22
+        'placeholder'=> empty($placeholder) ? '' : esc_attr($placeholder),
23
+        'required'   => !empty($required),
24 24
         'label'      => $label,
25 25
         'label_type' => 'vertical',
26
-        'help_text'  => empty( $description ) ? '' : wp_kses_post( $description ),
26
+        'help_text'  => empty($description) ? '' : wp_kses_post($description),
27 27
         'type'       => 'email',
28 28
     )
29 29
 );
Please login to merge, or discard this patch.
templates/payment-forms/elements/time.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,23 +7,23 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-$label = empty( $label ) ? '' : wp_kses_post( $label );
12
+$label = empty($label) ? '' : wp_kses_post($label);
13 13
 
14
-if ( ! empty( $required ) ) {
14
+if (!empty($required)) {
15 15
     $label .= "<span class='text-danger'> *</span>";
16 16
 }
17 17
 
18 18
 echo aui()->input(
19 19
     array(
20
-        'name'       => esc_attr( $id ),
21
-        'id'         => esc_attr( $id ) . uniqid( '_' ),
22
-        'placeholder'=> empty( $placeholder ) ? '' : esc_attr( $placeholder ),
23
-        'required'   => ! empty( $required ),
20
+        'name'       => esc_attr($id),
21
+        'id'         => esc_attr($id) . uniqid('_'),
22
+        'placeholder'=> empty($placeholder) ? '' : esc_attr($placeholder),
23
+        'required'   => !empty($required),
24 24
         'label'      => $label,
25 25
         'label_type' => 'vertical',
26
-        'help_text'  => empty( $description ) ? '' : wp_kses_post( $description ),
26
+        'help_text'  => empty($description) ? '' : wp_kses_post($description),
27 27
         'type'       => 'time',
28 28
     )
29 29
 );
Please login to merge, or discard this patch.
templates/payment-forms/elements/text.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,22 +7,22 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-$label = empty( $label ) ? '' : wp_kses_post( $label );
12
+$label = empty($label) ? '' : wp_kses_post($label);
13 13
 
14
-if ( ! empty( $required ) ) {
14
+if (!empty($required)) {
15 15
     $label .= "<span class='text-danger'> *</span>";
16 16
 }
17 17
 
18 18
 echo aui()->input(
19 19
     array(
20
-        'name'       => esc_attr( $id ),
21
-        'id'         => esc_attr( $id ) . uniqid( '_' ),
22
-        'placeholder'=> empty( $placeholder ) ? '' : esc_attr( $placeholder ),
23
-        'required'   => ! empty( $required ),
20
+        'name'       => esc_attr($id),
21
+        'id'         => esc_attr($id) . uniqid('_'),
22
+        'placeholder'=> empty($placeholder) ? '' : esc_attr($placeholder),
23
+        'required'   => !empty($required),
24 24
         'label'      => $label,
25 25
         'label_type' => 'vertical',
26
-        'help_text'  => empty( $description ) ? '' : wp_kses_post( $description ),
26
+        'help_text'  => empty($description) ? '' : wp_kses_post($description),
27 27
     )
28 28
 );
Please login to merge, or discard this patch.
templates/payment-forms/elements/textarea.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,22 +7,22 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-$label = empty( $label ) ? '' : wp_kses_post( $label );
12
+$label = empty($label) ? '' : wp_kses_post($label);
13 13
 
14
-if ( ! empty( $required ) ) {
14
+if (!empty($required)) {
15 15
     $label .= "<span class='text-danger'> *</span>";
16 16
 }
17 17
 
18 18
 echo aui()->textarea(
19 19
     array(
20
-        'name'       => esc_attr( $id ),
21
-        'id'         => esc_attr( $id ) . uniqid( '_' ),
22
-        'placeholder'=> empty( $placeholder ) ? '' : esc_attr( $placeholder ),
23
-        'required'   => ! empty( $required ),
20
+        'name'       => esc_attr($id),
21
+        'id'         => esc_attr($id) . uniqid('_'),
22
+        'placeholder'=> empty($placeholder) ? '' : esc_attr($placeholder),
23
+        'required'   => !empty($required),
24 24
         'label'      => $label,
25 25
         'label_type' => 'vertical',
26
-        'help_text'  => empty( $description ) ? '' : wp_kses_post( $description ),
26
+        'help_text'  => empty($description) ? '' : wp_kses_post($description),
27 27
     )
28 28
 );
Please login to merge, or discard this patch.
templates/wpinv-payment-processing.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@  discard block
 block discarded – undo
2 2
 global $wpi_invoice;
3 3
 
4 4
 // Backwards compatibility.
5
-if ( empty( $invoice ) ) {
5
+if (empty($invoice)) {
6 6
     $invoice = $wpi_invoice;
7 7
 }
8 8
 
9 9
 $success_page_uri = wpinv_get_success_page_uri();
10
-if ( ! empty( $invoice ) ) {
10
+if (!empty($invoice)) {
11 11
     $success_page_uri = $invoice->get_receipt_url();
12 12
 }
13 13
 ?>
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
         <?php 
18 18
             echo
19 19
             wp_sprintf(
20
-                __( 'Your payment is processing. This page will reload automatically in 10 seconds. If it does not, click <a href="%s">here</a>.', 'invoicing' ),
21
-                esc_url( $success_page_uri )
20
+                __('Your payment is processing. This page will reload automatically in 10 seconds. If it does not, click <a href="%s">here</a>.', 'invoicing'),
21
+                esc_url($success_page_uri)
22 22
             );
23 23
         ?>
24 24
         <i class="fa fa-spin fa-refresh"></i>
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     <script type="text/javascript">
28 28
         setTimeout(
29 29
             function(){
30
-                window.location = '<?php echo esc_url( $success_page_uri ); ?>';
30
+                window.location = '<?php echo esc_url($success_page_uri); ?>';
31 31
             },
32 32
             10000
33 33
         );
Please login to merge, or discard this patch.
templates/payment-forms-admin/previews/items.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,14 +7,14 @@
 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
 ?>
13 13
 
14 14
 <div v-if='!is_default'>
15
-    <div class='alert alert-info' role='alert'><?php _e( 'Item totals will appear here. Click to set items.', 'invoicing' ) ?></div>
15
+    <div class='alert alert-info' role='alert'><?php _e('Item totals will appear here. Click to set items.', 'invoicing') ?></div>
16 16
 </div>
17 17
 
18 18
 <div v-if='is_default'>
19
-    <div class='alert alert-info' role='alert'><?php _e( 'Item totals will appear here.', 'invoicing' ) ?></div>
19
+    <div class='alert alert-info' role='alert'><?php _e('Item totals will appear here.', 'invoicing') ?></div>
20 20
 </div>
Please login to merge, or discard this patch.
templates/invoice/fee-item.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
  * @var array $fee
10 10
  */
11 11
 
12
-defined( 'ABSPATH' ) || exit;
12
+defined('ABSPATH') || exit;
13 13
 
14
-do_action( 'getpaid_before_invoice_fee_item', $invoice, $fee );
14
+do_action('getpaid_before_invoice_fee_item', $invoice, $fee);
15 15
 
16 16
 ?>
17 17
 
@@ -19,61 +19,61 @@  discard block
 block discarded – undo
19 19
 
20 20
     <div class="form-row">
21 21
 
22
-        <?php foreach ( array_keys( $columns ) as $column ): ?>
22
+        <?php foreach (array_keys($columns) as $column): ?>
23 23
 
24
-            <div class="<?php echo 'name' == $column ? 'col-12 col-sm-6' : 'col-12 col-sm' ?> getpaid-invoice-item-<?php echo sanitize_html_class( $column ); ?>">
24
+            <div class="<?php echo 'name' == $column ? 'col-12 col-sm-6' : 'col-12 col-sm' ?> getpaid-invoice-item-<?php echo sanitize_html_class($column); ?>">
25 25
 
26 26
                 <?php
27 27
 
28 28
                     // Fires before printing a fee item column.
29
-                    do_action( "getpaid_invoice_fee_item_before_$column", $fee, $invoice );
29
+                    do_action("getpaid_invoice_fee_item_before_$column", $fee, $invoice);
30 30
 
31 31
                     // Item name.
32
-                    if ( 'name' == $column ) {
32
+                    if ('name' == $column) {
33 33
 
34 34
                         // Display the name.
35
-                        echo '<div class="mb-1">' . sanitize_text_field( $fee['name'] ) . '</div>';
35
+                        echo '<div class="mb-1">' . sanitize_text_field($fee['name']) . '</div>';
36 36
 
37 37
                         // And an optional description.
38
-                        $description = esc_html__( 'Fee', 'invoicing' );
38
+                        $description = esc_html__('Fee', 'invoicing');
39 39
                         echo "<small class='form-text text-muted pr-2 m-0'>$description</small>";
40 40
 
41 41
                     }
42 42
 
43 43
                     // Item price.
44
-                    if ( 'price' == $column ) {
44
+                    if ('price' == $column) {
45 45
 
46 46
                         // Display the item price (or recurring price if this is a renewal invoice)
47
-                        if ( $invoice->is_recurring() && $invoice->is_renewal() ) {
48
-                            echo wpinv_price( $fee['recurring_fee'], $invoice->get_currency() );
47
+                        if ($invoice->is_recurring() && $invoice->is_renewal()) {
48
+                            echo wpinv_price($fee['recurring_fee'], $invoice->get_currency());
49 49
                         } else {
50
-                            echo wpinv_price( $fee['initial_fee'], $invoice->get_currency() );
50
+                            echo wpinv_price($fee['initial_fee'], $invoice->get_currency());
51 51
                         }
52 52
 
53 53
                     }
54 54
 
55 55
                     // Item quantity.
56
-                    if ( 'quantity' == $column ) {
56
+                    if ('quantity' == $column) {
57 57
                         echo "&mdash;";
58 58
                     }
59 59
 
60 60
                     // Item sub total.
61
-                    if ( 'subtotal' == $column ) {
61
+                    if ('subtotal' == $column) {
62 62
 
63 63
                         // Display the item price (or recurring price if this is a renewal invoice)
64
-                        if ( $invoice->is_recurring() && $invoice->is_renewal() ) {
65
-                            echo wpinv_price( $fee['recurring_fee'], $invoice->get_currency() );
64
+                        if ($invoice->is_recurring() && $invoice->is_renewal()) {
65
+                            echo wpinv_price($fee['recurring_fee'], $invoice->get_currency());
66 66
                         } else {
67
-                            echo wpinv_price( $fee['initial_fee'], $invoice->get_currency() );
67
+                            echo wpinv_price($fee['initial_fee'], $invoice->get_currency());
68 68
                         }
69 69
 
70 70
                     }
71 71
 
72 72
                     // Fires when printing a fee item column.
73
-                    do_action( "getpaid_invoice_fee_item_$column", $fee, $invoice );
73
+                    do_action("getpaid_invoice_fee_item_$column", $fee, $invoice);
74 74
 
75 75
                     // Fires after printing a fee item column.
76
-                    do_action( "getpaid_invoice_fee_item_after_$column", $fee, $invoice );
76
+                    do_action("getpaid_invoice_fee_item_after_$column", $fee, $invoice);
77 77
 
78 78
                 ?>
79 79
 
Please login to merge, or discard this patch.