Passed
Push — master ( 5faead...57234e )
by Brian
04:33
created
templates/emails/wpinv-email-overdue.php 1 patch
Spacing   +6 added lines, -6 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 12
 // Print the email header.
13
-do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin );
13
+do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin);
14 14
 
15 15
 // Generate the custom message body.
16 16
 echo $message_body;
17 17
 
18 18
 // Print invoice details.
19
-do_action( 'wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin );
19
+do_action('wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin);
20 20
 
21 21
 // Print invoice items.
22
-do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin );
22
+do_action('wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin);
23 23
 
24 24
 // Print the billing details.
25
-do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin );
25
+do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin);
26 26
 
27 27
 // Print the email footer.
28
-do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin );
28
+do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin);
Please login to merge, or discard this patch.
templates/emails/wpinv-email-user_note.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -7,21 +7,21 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin );
12
+do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin);
13 13
 
14
-do_action( 'wpinv_email_before_note_details', $invoice, $email_type, $sent_to_admin, $customer_note );
14
+do_action('wpinv_email_before_note_details', $invoice, $email_type, $sent_to_admin, $customer_note);
15 15
 
16 16
 // Generate the custom message body.
17
-echo wptexturize( wp_kses_post( str_replace( '{customer_note}', $customer_note, $message_body ) ) );
17
+echo wptexturize(wp_kses_post(str_replace('{customer_note}', $customer_note, $message_body)));
18 18
 
19
-do_action( 'wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin );
19
+do_action('wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin);
20 20
 
21
-do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin );
21
+do_action('wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin);
22 22
 
23
-do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin );
23
+do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin);
24 24
 
25
-do_action( 'wpinv_email_after_note_details', $invoice, $email_type, $sent_to_admin, $customer_note );
25
+do_action('wpinv_email_after_note_details', $invoice, $email_type, $sent_to_admin, $customer_note);
26 26
 
27
-do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin );
28 27
\ No newline at end of file
28
+do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin);
29 29
\ No newline at end of file
Please login to merge, or discard this patch.
templates/emails/fee-item.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -10,63 +10,63 @@  discard block
 block discarded – undo
10 10
  * @var array $columns
11 11
  */
12 12
 
13
-defined( 'ABSPATH' ) || exit;
13
+defined('ABSPATH') || exit;
14 14
 
15 15
 ?>
16 16
 
17
-<?php do_action( 'getpaid_before_email_fee_item', $invoice, $fee ); ?>
17
+<?php do_action('getpaid_before_email_fee_item', $invoice, $fee); ?>
18 18
 
19 19
 <tr class="wpinv_cart_item item-fee">
20 20
 
21
-    <?php foreach ( array_keys( $columns ) as $column ): ?>
21
+    <?php foreach (array_keys($columns) as $column): ?>
22 22
 
23
-        <td class="<?php echo 'name' == $column ? 'text-left' : 'text-right' ?> wpinv_cart_item_<?php echo sanitize_html_class( $column ); ?>">
23
+        <td class="<?php echo 'name' == $column ? 'text-left' : 'text-right' ?> wpinv_cart_item_<?php echo sanitize_html_class($column); ?>">
24 24
             
25 25
             <?php
26 26
 
27 27
                 // Fires before printing a fee item column.
28
-                do_action( "getpaid_email_fee_item_before_$column", $fee, $invoice );
28
+                do_action("getpaid_email_fee_item_before_$column", $fee, $invoice);
29 29
 
30 30
                 // Item name.
31
-                if ( 'name' == $column ) {
31
+                if ('name' == $column) {
32 32
 
33 33
                     // Display the name.
34
-                    echo '<div class="wpinv_email_cart_item_title">' . sanitize_text_field( $fee['name'] ) . '</div>';
34
+                    echo '<div class="wpinv_email_cart_item_title">' . sanitize_text_field($fee['name']) . '</div>';
35 35
 
36 36
                     // And an optional description.
37
-                    $description = esc_html__( 'Fee', 'invoicing' );
37
+                    $description = esc_html__('Fee', 'invoicing');
38 38
                     echo "<p class='small'>$description</p>";
39 39
 
40 40
                 }
41 41
 
42 42
                 // Item price.
43
-                if ( 'price' == $column ) {
43
+                if ('price' == $column) {
44 44
 
45 45
                     // Display the item price (or recurring price if this is a renewal invoice)
46
-                    if ( $invoice->is_recurring() && $invoice->is_renewal() ) {
47
-                        echo wpinv_price( $fee['recurring_fee'], $invoice->get_currency() );
46
+                    if ($invoice->is_recurring() && $invoice->is_renewal()) {
47
+                        echo wpinv_price($fee['recurring_fee'], $invoice->get_currency());
48 48
                     } else {
49
-                        echo wpinv_price( $fee['initial_fee'], $invoice->get_currency() );
49
+                        echo wpinv_price($fee['initial_fee'], $invoice->get_currency());
50 50
                     }
51 51
 
52 52
                 }
53 53
 
54 54
                 // Item quantity.
55
-                if ( 'quantity' == $column ) {
55
+                if ('quantity' == $column) {
56 56
                     echo "&mdash;";
57 57
                 }
58 58
 
59 59
                 // Item sub total.
60
-                if ( 'subtotal' == $column ) {
61
-                    if ( $invoice->is_recurring() && $invoice->is_renewal() ) {
62
-                        echo wpinv_price( $fee['recurring_fee'], $invoice->get_currency() );
60
+                if ('subtotal' == $column) {
61
+                    if ($invoice->is_recurring() && $invoice->is_renewal()) {
62
+                        echo wpinv_price($fee['recurring_fee'], $invoice->get_currency());
63 63
                     } else {
64
-                        echo wpinv_price( $fee['initial_fee'], $invoice->get_currency() );
64
+                        echo wpinv_price($fee['initial_fee'], $invoice->get_currency());
65 65
                     }
66 66
                 }
67 67
 
68 68
                 // Fires when printing a line item column.
69
-                do_action( "getpaid_email_fee_item_$column", $fee, $invoice );
69
+                do_action("getpaid_email_fee_item_$column", $fee, $invoice);
70 70
 
71 71
             ?>
72 72
 
@@ -76,4 +76,4 @@  discard block
 block discarded – undo
76 76
 
77 77
 </tr>
78 78
 
79
-<?php do_action( 'getpaid_after_email_fee_item', $invoice, $fee ); ?>
79
+<?php do_action('getpaid_after_email_fee_item', $invoice, $fee); ?>
Please login to merge, or discard this patch.
templates/emails/wpinv-email-subscription_complete.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,18 +8,18 @@
 block discarded – undo
8 8
  * @var WPInv_Subscription $object
9 9
  */
10 10
 
11
-defined( 'ABSPATH' ) || exit;
11
+defined('ABSPATH') || exit;
12 12
 
13 13
 $invoice = $object->get_parent_payment();
14 14
 
15 15
 // Print the email header.
16
-do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin );
16
+do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin);
17 17
 
18 18
 // Generate the custom message body.
19 19
 echo $message_body;
20 20
 
21 21
 // Print the billing details.
22
-do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin );
22
+do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin);
23 23
 
24 24
 // Print the email footer.
25
-do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin );
25
+do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin);
Please login to merge, or discard this patch.
templates/emails/wpinv-email-renewal_reminder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,24 +8,24 @@
 block discarded – undo
8 8
  * @var WPInv_Subscription $object
9 9
  */
10 10
 
11
-defined( 'ABSPATH' ) || exit;
11
+defined('ABSPATH') || exit;
12 12
 
13 13
 $invoice = $object->get_parent_payment();
14 14
 
15 15
 // Print the email header.
16
-do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin );
16
+do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin);
17 17
 
18 18
 // Generate the custom message body.
19 19
 echo $message_body;
20 20
 
21 21
 // Print invoice details.
22
-do_action( 'wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin );
22
+do_action('wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin);
23 23
 
24 24
 // Print invoice items.
25
-do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin );
25
+do_action('wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin);
26 26
 
27 27
 // Print the billing details.
28
-do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin );
28
+do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin);
29 29
 
30 30
 // Print the email footer.
31
-do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin );
31
+do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin);
Please login to merge, or discard this patch.
templates/emails/wpinv-email-billing-details.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,41 +1,41 @@
 block discarded – undo
1 1
 <?php
2 2
 // don't load directly
3
-if ( !defined('ABSPATH') )
3
+if (!defined('ABSPATH'))
4 4
     die('-1');
5 5
 
6
-do_action( 'wpinv_email_before_billing_details', $invoice ); ?>
6
+do_action('wpinv_email_before_billing_details', $invoice); ?>
7 7
 <div id="wpinv-email-billing">
8
-    <h3 class="wpinv-address-t"><?php echo apply_filters( 'wpinv_email_billing_title', __( 'Billing Details', 'invoicing' ) ); ?></h3>
8
+    <h3 class="wpinv-address-t"><?php echo apply_filters('wpinv_email_billing_title', __('Billing Details', 'invoicing')); ?></h3>
9 9
 
10 10
     <table class="table table-bordered table-sm wpi-billing-details">
11 11
         <tbody>
12
-            <?php do_action( 'wpinv_email_billing_fields_first', $invoice ); ?>
12
+            <?php do_action('wpinv_email_billing_fields_first', $invoice); ?>
13 13
             <tr class="wpi-receipt-name">
14
-                <th class="text-left"><?php _e( 'Name', 'invoicing' ); ?></th>
15
-                <td><?php if ( $sent_to_admin && $invoice->get_user_id() ) { ?><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><?php } else { echo esc_html( $invoice->get_user_full_name() ); } ?></td>
14
+                <th class="text-left"><?php _e('Name', 'invoicing'); ?></th>
15
+                <td><?php if ($sent_to_admin && $invoice->get_user_id()) { ?><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><?php } else { echo esc_html($invoice->get_user_full_name()); } ?></td>
16 16
             </tr>
17 17
             <tr class="wpi-receipt-email">
18
-                <th class="text-left"><?php _e( 'Email', 'invoicing' ); ?></th>
19
-                <td><?php echo $invoice->get_email() ;?></td>
18
+                <th class="text-left"><?php _e('Email', 'invoicing'); ?></th>
19
+                <td><?php echo $invoice->get_email(); ?></td>
20 20
             </tr>
21
-            <?php if ( $invoice->get_company() ) { ?>
21
+            <?php if ($invoice->get_company()) { ?>
22 22
             <tr class="wpi-receipt-company">
23
-                <th class="text-left"><?php _e( 'Company', 'invoicing' ); ?></th>
24
-                <td><?php echo esc_html( $invoice->get_company() ) ;?></td>
23
+                <th class="text-left"><?php _e('Company', 'invoicing'); ?></th>
24
+                <td><?php echo esc_html($invoice->get_company()); ?></td>
25 25
             </tr>
26 26
             <?php } ?>
27 27
             <tr class="wpi-receipt-address">
28
-                <th class="text-left"><?php _e( 'Address', 'invoicing' ); ?></th>
29
-                <td><?php echo wpinv_get_invoice_address_markup( $invoice->get_user_info() ) ;?></td>
28
+                <th class="text-left"><?php _e('Address', 'invoicing'); ?></th>
29
+                <td><?php echo wpinv_get_invoice_address_markup($invoice->get_user_info()); ?></td>
30 30
             </tr>
31
-            <?php if ( $invoice->get_phone() ) { ?>
31
+            <?php if ($invoice->get_phone()) { ?>
32 32
             <tr class="wpi-receipt-phone">
33
-                <th class="text-left"><?php _e( 'Phone', 'invoicing' ); ?></th>
34
-                <td><?php echo esc_html( $invoice->get_phone() ) ;?></td>
33
+                <th class="text-left"><?php _e('Phone', 'invoicing'); ?></th>
34
+                <td><?php echo esc_html($invoice->get_phone()); ?></td>
35 35
             </tr>
36 36
             <?php } ?>
37
-            <?php do_action( 'wpinv_email_billing_fields_last', $invoice ); ?>
37
+            <?php do_action('wpinv_email_billing_fields_last', $invoice); ?>
38 38
         </tbody>
39 39
     </table>
40 40
 </div>
41
-<?php do_action( 'wpinv_email_after_billing_details', $invoice ); ?>
42 41
\ No newline at end of file
42
+<?php do_action('wpinv_email_after_billing_details', $invoice); ?>
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
templates/emails/wpinv-email-subscription_trial.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,18 +8,18 @@
 block discarded – undo
8 8
  * @var WPInv_Subscription $object
9 9
  */
10 10
 
11
-defined( 'ABSPATH' ) || exit;
11
+defined('ABSPATH') || exit;
12 12
 
13 13
 $invoice = $object->get_parent_payment();
14 14
 
15 15
 // Print the email header.
16
-do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin );
16
+do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin);
17 17
 
18 18
 // Generate the custom message body.
19 19
 echo $message_body;
20 20
 
21 21
 // Print the billing details.
22
-do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin );
22
+do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin);
23 23
 
24 24
 // Print the email footer.
25
-do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin );
25
+do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin);
Please login to merge, or discard this patch.
templates/emails/wpinv-email-subscription_expired.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,18 +8,18 @@
 block discarded – undo
8 8
  * @var WPInv_Subscription $object
9 9
  */
10 10
 
11
-defined( 'ABSPATH' ) || exit;
11
+defined('ABSPATH') || exit;
12 12
 
13 13
 $invoice = $object->get_parent_payment();
14 14
 
15 15
 // Print the email header.
16
-do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin );
16
+do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin);
17 17
 
18 18
 // Generate the custom message body.
19 19
 echo $message_body;
20 20
 
21 21
 // Print the billing details.
22
-do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin );
22
+do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin);
23 23
 
24 24
 // Print the email footer.
25
-do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin );
25
+do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin);
Please login to merge, or discard this patch.
templates/emails/wpinv-email-subscription_cancelled.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,18 +8,18 @@
 block discarded – undo
8 8
  * @var WPInv_Subscription $object
9 9
  */
10 10
 
11
-defined( 'ABSPATH' ) || exit;
11
+defined('ABSPATH') || exit;
12 12
 
13 13
 $invoice = $object->get_parent_payment();
14 14
 
15 15
 // Print the email header.
16
-do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin );
16
+do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin);
17 17
 
18 18
 // Generate the custom message body.
19 19
 echo $message_body;
20 20
 
21 21
 // Print the billing details.
22
-do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin );
22
+do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin);
23 23
 
24 24
 // Print the email footer.
25
-do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin );
25
+do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin);
Please login to merge, or discard this patch.