Passed
Push — master ( 763170...0f9edb )
by Kiran
07:19 queued 16s
created
templates/subscriptions/subscriptions-table-row.php 1 patch
Switch Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -20,35 +20,35 @@
 block discarded – undo
20 20
 
21 21
 		switch ( $column ) :
22 22
 
23
-		case 'subscription':
24
-			$subscription_id = (int) $subscription->get_id();
25
-			$url             = esc_url( $subscription->get_view_url() );
26
-			$id_label        = sprintf(
27
-				esc_attr_x( '#%s', 'subscription id', 'invoicing' ),
28
-				(int) $subscription->get_id()
29
-			);
30
-			echo wp_kses_post( $widget->add_row_actions( "<a href='$url' class='font-weight-bold text-decoration-none'>$id_label</a>", $subscription ) );
31
-			break;
32
-
33
-		case 'status':
34
-			echo esc_html( $subscription->get_status_label() );
35
-			break;
36
-
37
-		case 'renewal-date':
38
-			$renewal = getpaid_format_date_value( $subscription->get_next_renewal_date() );
39
-			echo $subscription->is_active() ? esc_html( $renewal ) : '&mdash;';
40
-			break;
41
-
42
-		case 'amount':
43
-			$frequency = getpaid_get_subscription_period_label( $subscription->get_period(), $subscription->get_frequency(), '' );
44
-			$amount    = wpinv_price( $subscription->get_recurring_amount(), $subscription->get_parent_payment()->get_currency() );
45
-			echo wp_kses_post( "<span>$amount</span> / <span class='getpaid-item-recurring-period'>$frequency</span>" );
46
-			break;
47
-
48
-		endswitch;
49
-
50
-		do_action( "getpaid_subscriptions_frontend_subscription_table_$column", $subscription );
51
-
52
-	echo '</td>';
53
-
54
-endforeach;
23
+		    case 'subscription':
24
+			    $subscription_id = (int) $subscription->get_id();
25
+			    $url             = esc_url( $subscription->get_view_url() );
26
+			    $id_label        = sprintf(
27
+				    esc_attr_x( '#%s', 'subscription id', 'invoicing' ),
28
+				    (int) $subscription->get_id()
29
+			    );
30
+			    echo wp_kses_post( $widget->add_row_actions( "<a href='$url' class='font-weight-bold text-decoration-none'>$id_label</a>", $subscription ) );
31
+			    break;
32
+
33
+		    case 'status':
34
+			    echo esc_html( $subscription->get_status_label() );
35
+			    break;
36
+
37
+		    case 'renewal-date':
38
+			    $renewal = getpaid_format_date_value( $subscription->get_next_renewal_date() );
39
+			    echo $subscription->is_active() ? esc_html( $renewal ) : '&mdash;';
40
+			    break;
41
+
42
+		    case 'amount':
43
+			    $frequency = getpaid_get_subscription_period_label( $subscription->get_period(), $subscription->get_frequency(), '' );
44
+			    $amount    = wpinv_price( $subscription->get_recurring_amount(), $subscription->get_parent_payment()->get_currency() );
45
+			    echo wp_kses_post( "<span>$amount</span> / <span class='getpaid-item-recurring-period'>$frequency</span>" );
46
+			    break;
47
+
48
+		    endswitch;
49
+
50
+		    do_action( "getpaid_subscriptions_frontend_subscription_table_$column", $subscription );
51
+
52
+	    echo '</td>';
53
+
54
+    endforeach;
Please login to merge, or discard this patch.
includes/admin/subscriptions.php 1 patch
Switch Indentation   +108 added lines, -108 removed lines patch added patch discarded remove patch
@@ -508,39 +508,39 @@  discard block
 block discarded – undo
508 508
 
509 509
 								switch ( $key ) {
510 510
 
511
-								case 'total':
512
-										echo '<strong>';
513
-										wpinv_the_price( $payment->get_total(), $payment->get_currency() );
514
-										echo '</strong>';
515
-									break;
516
-
517
-								case 'relationship':
518
-										echo $payment->is_renewal() ? esc_html__( 'Renewal Invoice', 'invoicing' ) : esc_html__( 'Initial Invoice', 'invoicing' );
519
-									break;
520
-
521
-								case 'date':
522
-									echo esc_html( getpaid_format_date_value( $payment->get_date_created() ) );
523
-									break;
524
-
525
-								case 'status':
526
-										$status = $payment->get_status_nicename();
527
-										if ( is_admin() ) {
528
-										$status = $payment->get_status_label_html();
529
-										}
530
-
531
-										echo wp_kses_post( $status );
532
-									break;
533
-
534
-								case 'invoice':
535
-										$link    = esc_url( get_edit_post_link( $payment->get_id() ) );
536
-
537
-										if ( ! is_admin() ) {
538
-										$link = esc_url( $payment->get_view_url() );
539
-										}
540
-
541
-										$invoice = esc_html( $payment->get_number() );
542
-										echo wp_kses_post( "<a href='$link'>$invoice</a>" );
543
-									break;
511
+								    case 'total':
512
+										    echo '<strong>';
513
+										    wpinv_the_price( $payment->get_total(), $payment->get_currency() );
514
+										    echo '</strong>';
515
+									    break;
516
+
517
+								    case 'relationship':
518
+										    echo $payment->is_renewal() ? esc_html__( 'Renewal Invoice', 'invoicing' ) : esc_html__( 'Initial Invoice', 'invoicing' );
519
+									    break;
520
+
521
+								    case 'date':
522
+									    echo esc_html( getpaid_format_date_value( $payment->get_date_created() ) );
523
+									    break;
524
+
525
+								    case 'status':
526
+										    $status = $payment->get_status_nicename();
527
+										    if ( is_admin() ) {
528
+										    $status = $payment->get_status_label_html();
529
+										    }
530
+
531
+										    echo wp_kses_post( $status );
532
+									    break;
533
+
534
+								    case 'invoice':
535
+										    $link    = esc_url( get_edit_post_link( $payment->get_id() ) );
536
+
537
+										    if ( ! is_admin() ) {
538
+										    $link = esc_url( $payment->get_view_url() );
539
+										    }
540
+
541
+										    $invoice = esc_html( $payment->get_number() );
542
+										    echo wp_kses_post( "<a href='$link'>$invoice</a>" );
543
+									    break;
544 544
 										}
545 545
 
546 546
 								echo '</td>';
@@ -635,37 +635,37 @@  discard block
 block discarded – undo
635 635
 
636 636
 								switch ( $key ) {
637 637
 
638
-								case 'item_name':
639
-										$item_name = get_the_title( $subscription_group_item['item_id'] );
640
-										$item_name = empty( $item_name ) ? $subscription_group_item['item_name'] : $item_name;
638
+								    case 'item_name':
639
+										    $item_name = get_the_title( $subscription_group_item['item_id'] );
640
+										    $item_name = empty( $item_name ) ? $subscription_group_item['item_name'] : $item_name;
641 641
 
642
-										if ( $invoice->get_template() == 'amount' || 1 == (float) $subscription_group_item['quantity'] ) {
643
-										echo esc_html( $item_name );
644
-										} else {
645
-										printf( '%1$s x %2$d', esc_html( $item_name ), (float) $subscription_group_item['quantity'] );
646
-											}
642
+										    if ( $invoice->get_template() == 'amount' || 1 == (float) $subscription_group_item['quantity'] ) {
643
+										    echo esc_html( $item_name );
644
+										    } else {
645
+										    printf( '%1$s x %2$d', esc_html( $item_name ), (float) $subscription_group_item['quantity'] );
646
+											    }
647 647
 
648
-									break;
648
+									    break;
649 649
 
650
-								case 'price':
651
-									wpinv_the_price( $subscription_group_item['item_price'], $invoice->get_currency() );
652
-									break;
650
+								    case 'price':
651
+									    wpinv_the_price( $subscription_group_item['item_price'], $invoice->get_currency() );
652
+									    break;
653 653
 
654
-								case 'tax':
655
-									wpinv_the_price( $subscription_group_item['tax'], $invoice->get_currency() );
656
-									break;
654
+								    case 'tax':
655
+									    wpinv_the_price( $subscription_group_item['tax'], $invoice->get_currency() );
656
+									    break;
657 657
 
658
-								case 'discount':
659
-									wpinv_the_price( $subscription_group_item['discount'], $invoice->get_currency() );
660
-									break;
658
+								    case 'discount':
659
+									    wpinv_the_price( $subscription_group_item['discount'], $invoice->get_currency() );
660
+									    break;
661 661
 
662
-								case 'initial':
663
-									wpinv_the_price( $subscription_group_item['price'] * $subscription_group_item['quantity'], $invoice->get_currency() );
664
-									break;
662
+								    case 'initial':
663
+									    wpinv_the_price( $subscription_group_item['price'] * $subscription_group_item['quantity'], $invoice->get_currency() );
664
+									    break;
665 665
 
666
-								case 'recurring':
667
-										echo wp_kses_post( '<strong>' . wpinv_price( $subscription_group_item['price'] * $subscription_group_item['quantity'], $invoice->get_currency() ) . '</strong>' );
668
-									break;
666
+								    case 'recurring':
667
+										    echo wp_kses_post( '<strong>' . wpinv_price( $subscription_group_item['price'] * $subscription_group_item['quantity'], $invoice->get_currency() ) . '</strong>' );
668
+									    break;
669 669
 
670 670
 										}
671 671
 
@@ -689,29 +689,29 @@  discard block
 block discarded – undo
689 689
 
690 690
 								switch ( $key ) {
691 691
 
692
-								case 'item_name':
693
-										echo esc_html( $subscription_group_fee['name'] );
694
-									break;
692
+								    case 'item_name':
693
+										    echo esc_html( $subscription_group_fee['name'] );
694
+									    break;
695 695
 
696
-								case 'price':
697
-									wpinv_the_price( $subscription_group_fee['initial_fee'], $invoice->get_currency() );
698
-									break;
696
+								    case 'price':
697
+									    wpinv_the_price( $subscription_group_fee['initial_fee'], $invoice->get_currency() );
698
+									    break;
699 699
 
700
-								case 'tax':
701
-									echo '&mdash;';
702
-									break;
700
+								    case 'tax':
701
+									    echo '&mdash;';
702
+									    break;
703 703
 
704
-								case 'discount':
705
-										echo '&mdash;';
706
-									break;
704
+								    case 'discount':
705
+										    echo '&mdash;';
706
+									    break;
707 707
 
708
-								case 'initial':
709
-									wpinv_the_price( $subscription_group_fee['initial_fee'], $invoice->get_currency() );
710
-									break;
708
+								    case 'initial':
709
+									    wpinv_the_price( $subscription_group_fee['initial_fee'], $invoice->get_currency() );
710
+									    break;
711 711
 
712
-								case 'recurring':
713
-										echo wp_kses_post( '<strong>' . wpinv_price( $subscription_group_fee['recurring_fee'], $invoice->get_currency() ) . '</strong>' );
714
-									break;
712
+								    case 'recurring':
713
+										    echo wp_kses_post( '<strong>' . wpinv_price( $subscription_group_fee['recurring_fee'], $invoice->get_currency() ) . '</strong>' );
714
+									    break;
715 715
 
716 716
 										}
717 717
 
@@ -816,39 +816,39 @@  discard block
 block discarded – undo
816 816
 
817 817
 								switch ( $key ) {
818 818
 
819
-								case 'status':
820
-										echo wp_kses_post( $_suscription->get_status_label_html() );
821
-									break;
822
-
823
-								case 'item':
824
-											$markup = array_map( array( 'WPInv_Subscriptions_List_Table', 'generate_item_markup' ), array_keys( $subscription_group['items'] ) );
825
-											echo wp_kses_post( implode( ' | ', $markup ) );
826
-									break;
827
-
828
-								case 'renewals':
829
-									$max_bills = $_suscription->get_bill_times();
830
-									echo ( (int) $_suscription->get_times_billed() ) . ' / ' . ( empty( $max_bills ) ? '&infin;' : (int) $max_bills );
831
-									break;
832
-
833
-								case 'renewal_date':
834
-										echo $_suscription->is_active() ? esc_html( getpaid_format_date_value( $_suscription->get_expiration() ) ) : '&mdash;';
835
-									break;
836
-
837
-								case 'start_date':
838
-										echo 'pending' == $_suscription->get_status() ? '&mdash;' : esc_html( getpaid_format_date_value( $_suscription->get_date_created() ) );
839
-									break;
840
-
841
-								case 'subscription':
842
-										$url = is_admin() ? admin_url( 'admin.php?page=wpinv-subscriptions&id=' . absint( $_suscription->get_id() ) ) : $_suscription->get_view_url();
843
-										printf(
844
-                                            '%1$s#%2$s%3$s',
845
-                                            '<a href="' . esc_url( $url ) . '">',
846
-                                            '<strong>' . intval( $_suscription->get_id() ) . '</strong>',
847
-											'</a>'
848
-                                        );
849
-
850
-											echo wp_kses_post( WPInv_Subscriptions_List_Table::column_amount( $_suscription ) );
851
-									break;
819
+								    case 'status':
820
+										    echo wp_kses_post( $_suscription->get_status_label_html() );
821
+									    break;
822
+
823
+								    case 'item':
824
+											    $markup = array_map( array( 'WPInv_Subscriptions_List_Table', 'generate_item_markup' ), array_keys( $subscription_group['items'] ) );
825
+											    echo wp_kses_post( implode( ' | ', $markup ) );
826
+									    break;
827
+
828
+								    case 'renewals':
829
+									    $max_bills = $_suscription->get_bill_times();
830
+									    echo ( (int) $_suscription->get_times_billed() ) . ' / ' . ( empty( $max_bills ) ? '&infin;' : (int) $max_bills );
831
+									    break;
832
+
833
+								    case 'renewal_date':
834
+										    echo $_suscription->is_active() ? esc_html( getpaid_format_date_value( $_suscription->get_expiration() ) ) : '&mdash;';
835
+									    break;
836
+
837
+								    case 'start_date':
838
+										    echo 'pending' == $_suscription->get_status() ? '&mdash;' : esc_html( getpaid_format_date_value( $_suscription->get_date_created() ) );
839
+									    break;
840
+
841
+								    case 'subscription':
842
+										    $url = is_admin() ? admin_url( 'admin.php?page=wpinv-subscriptions&id=' . absint( $_suscription->get_id() ) ) : $_suscription->get_view_url();
843
+										    printf(
844
+                                                '%1$s#%2$s%3$s',
845
+                                                '<a href="' . esc_url( $url ) . '">',
846
+                                                '<strong>' . intval( $_suscription->get_id() ) . '</strong>',
847
+											    '</a>'
848
+                                            );
849
+
850
+											    echo wp_kses_post( WPInv_Subscriptions_List_Table::column_amount( $_suscription ) );
851
+									    break;
852 852
 
853 853
 										}
854 854
 
Please login to merge, or discard this patch.
templates/subscriptions/subscription-details.php 1 patch
Switch Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -41,55 +41,55 @@
 block discarded – undo
41 41
 
42 42
 						switch ( $key ) {
43 43
 
44
-						case 'status':
45
-							echo esc_html( $subscription->get_status_label() );
46
-							break;
44
+						    case 'status':
45
+							    echo esc_html( $subscription->get_status_label() );
46
+							    break;
47 47
 
48
-						case 'start_date':
49
-							echo esc_html( getpaid_format_date_value( $subscription->get_date_created() ) );
50
-							break;
48
+						    case 'start_date':
49
+							    echo esc_html( getpaid_format_date_value( $subscription->get_date_created() ) );
50
+							    break;
51 51
 
52
-						case 'expiry_date':
53
-							echo esc_html( getpaid_format_date_value( $subscription->get_next_renewal_date() ) );
54
-							break;
52
+						    case 'expiry_date':
53
+							    echo esc_html( getpaid_format_date_value( $subscription->get_next_renewal_date() ) );
54
+							    break;
55 55
 
56
-						case 'initial_amount':
57
-							echo wp_kses_post( wpinv_price( $subscription->get_initial_amount(), $subscription->get_parent_payment()->get_currency() ) );
56
+						    case 'initial_amount':
57
+							    echo wp_kses_post( wpinv_price( $subscription->get_initial_amount(), $subscription->get_parent_payment()->get_currency() ) );
58 58
 
59
-							if ( $subscription->has_trial_period() ) {
59
+							    if ( $subscription->has_trial_period() ) {
60 60
 
61
-								echo "<small class='text-muted'>&nbsp;";
62
-								printf(
63
-									esc_html_x( '( %1$s trial )', 'Subscription trial period. (e.g.: 1 month trial)', 'invoicing' ),
64
-									esc_html( $subscription->get_trial_period() )
65
-								);
66
-								echo '</small>';
61
+								    echo "<small class='text-muted'>&nbsp;";
62
+								    printf(
63
+									    esc_html_x( '( %1$s trial )', 'Subscription trial period. (e.g.: 1 month trial)', 'invoicing' ),
64
+									    esc_html( $subscription->get_trial_period() )
65
+								    );
66
+								    echo '</small>';
67 67
 
68
-							}
68
+							    }
69 69
 
70
-							break;
70
+							    break;
71 71
 
72
-						case 'recurring_amount':
73
-							$frequency = getpaid_get_subscription_period_label( $subscription->get_period(), $subscription->get_frequency(), '' );
74
-							$amount    = wpinv_price( $subscription->get_recurring_amount(), $subscription->get_parent_payment()->get_currency() );
75
-							echo wp_kses_post( strtolower( "<strong style='font-weight: 500;'>$amount</strong> / <span class='getpaid-item-recurring-period'>$frequency</span>" ) );
76
-							break;
72
+						    case 'recurring_amount':
73
+							    $frequency = getpaid_get_subscription_period_label( $subscription->get_period(), $subscription->get_frequency(), '' );
74
+							    $amount    = wpinv_price( $subscription->get_recurring_amount(), $subscription->get_parent_payment()->get_currency() );
75
+							    echo wp_kses_post( strtolower( "<strong style='font-weight: 500;'>$amount</strong> / <span class='getpaid-item-recurring-period'>$frequency</span>" ) );
76
+							    break;
77 77
 
78
-						case 'item':
79
-							if ( empty( $subscription_group ) ) {
80
-								echo wp_kses_post( WPInv_Subscriptions_List_Table::generate_item_markup( $subscription->get_product_id() ) );
81
-							} else {
82
-								$markup = array_map( array( 'WPInv_Subscriptions_List_Table', 'generate_item_markup' ), array_keys( $subscription_group['items'] ) );
83
-								echo wp_kses_post( implode( ' | ', $markup ) );
84
-							}
78
+						    case 'item':
79
+							    if ( empty( $subscription_group ) ) {
80
+								    echo wp_kses_post( WPInv_Subscriptions_List_Table::generate_item_markup( $subscription->get_product_id() ) );
81
+							    } else {
82
+								    $markup = array_map( array( 'WPInv_Subscriptions_List_Table', 'generate_item_markup' ), array_keys( $subscription_group['items'] ) );
83
+								    echo wp_kses_post( implode( ' | ', $markup ) );
84
+							    }
85 85
 
86
-							break;
86
+							    break;
87 87
 
88
-						case 'payments':
89
-							$max_activations = (int) $subscription->get_bill_times();
90
-							echo ( (int) $subscription->get_times_billed() ) . ' / ' . ( empty( $max_activations ) ? '&infin;' : (int) $max_activations );
88
+						    case 'payments':
89
+							    $max_activations = (int) $subscription->get_bill_times();
90
+							    echo ( (int) $subscription->get_times_billed() ) . ' / ' . ( empty( $max_activations ) ? '&infin;' : (int) $max_activations );
91 91
 
92
-							break;
92
+							    break;
93 93
 
94 94
 						}
95 95
 						do_action( "getpaid_render_single_subscription_column_$key", $subscription );
Please login to merge, or discard this patch.
templates/invoice/invoice-type.php 1 patch
Switch Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 /**
3 3
  * Displays right side of the type of invoice.
4 4
  *
@@ -7,11 +7,11 @@  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
-?>
13
-<h2 class="h3 text-dark">
12
+    ?>
13
+    <h2 class="h3 text-dark">
14 14
     <?php echo esc_html( apply_filters( 'getpaid_invoice_type_label', esc_html( ucfirst( $invoice->get_invoice_quote_type() ) ), $invoice ) ); ?>
15
-</h2>
15
+    </h2>
16 16
 
17
-<?php
17
+    <?php
Please login to merge, or discard this patch.
templates/invoice/company-address.php 1 patch
Switch Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 /**
3 3
  * Displays the company address.
4 4
  *
@@ -7,19 +7,19 @@  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
-// Prepare the company name.
13
-$company_name = wpinv_get_option( 'vat_company_name' );
12
+    // Prepare the company name.
13
+    $company_name = wpinv_get_option( 'vat_company_name' );
14 14
 
15
-if ( empty( $company_name ) ) {
16
-    $company_name = wpinv_get_business_name();
15
+    if ( empty( $company_name ) ) {
16
+        $company_name = wpinv_get_business_name();
17 17
 }
18 18
 
19
-// Prepare the VAT number.
20
-$vat_number = wpinv_get_option( 'vat_number' );
19
+    // Prepare the VAT number.
20
+    $vat_number = wpinv_get_option( 'vat_number' );
21 21
 
22
-?>
22
+    ?>
23 23
     <div class="getpaid-company-address form-group mb-3">
24 24
 
25 25
         <div class="row">
@@ -39,21 +39,21 @@  discard block
 block discarded – undo
39 39
                 </div>
40 40
 
41 41
                 <?php if ( $address = wpinv_get_business_address() ) { ?>
42
-                    <?php echo wp_kses_post( $address ); ?>
43
-                <?php } ?>
44
-
42
+                        <?php echo wp_kses_post( $address ); ?>
43
+                    <?php } ?>
44
+    
45 45
                 <?php if ( $email_from = wpinv_mail_get_from_address() ) { ?>
46
-                    <div class="email_from">
46
+                        <div class="email_from">
47 47
                         <?php echo wp_sprintf( esc_html__( 'Email: %s', 'invoicing' ), esc_html( $email_from ) ); ?>
48
-                    </div>
48
+                        </div>
49 49
                 <?php } ?>
50
-
50
+    
51 51
                 <?php if ( ! empty( $vat_number ) ) { ?>
52
-                    <div class="email_from">
52
+                        <div class="email_from">
53 53
                         <?php echo wp_sprintf( esc_html__( 'VAT Number: %s', 'invoicing' ), esc_html( $vat_number ) ); ?>
54
-                    </div>
54
+                        </div>
55 55
                 <?php } ?>
56
-
56
+    
57 57
                 <?php do_action( 'getpaid_company_address_bottom' ); ?>
58 58
 
59 59
             </div>
Please login to merge, or discard this patch.
templates/invoice/header.php 1 patch
Switch Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 /**
3 3
  * Displays the invoice header.
4 4
  *
@@ -7,9 +7,9 @@  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
-?>
12
+    ?>
13 13
 
14 14
     <div class="d-print-none border-bottom pt-3 pb-3 bg-white">
15 15
         <div class="container">
Please login to merge, or discard this patch.
templates/invoice/details-top.php 1 patch
Switch Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 /**
3 3
  * Displays the invoice title, type etc.
4 4
  *
@@ -7,10 +7,10 @@  discard block
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
11
-
12
-?>
10
+    defined( 'ABSPATH' ) || exit;
13 11
 
12
+    ?>
13
+    
14 14
         <?php do_action( 'getpaid_before_invoice_details_top', $invoice ); ?>
15 15
 
16 16
         <div class="getpaid-invoice-details-top mb-5">
@@ -26,5 +26,5 @@  discard block
 block discarded – undo
26 26
         </div>
27 27
 
28 28
         <?php do_action( 'getpaid_after_invoice_details_top', $invoice ); ?>
29
-
30
-<?php
29
+    
30
+    <?php
Please login to merge, or discard this patch.
templates/invoice/footer.php 1 patch
Switch Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 /**
3 3
  * Displays the invoice footer.
4 4
  *
@@ -7,17 +7,17 @@  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
-?>
12
+    ?>
13 13
 
14 14
     <div class="border-top pt-4 bg-white">
15 15
         <div class="container pr-0 pl-0">
16 16
 
17 17
             <?php if ( $term_text = wpinv_get_terms_text() ) : ?>
18
-                <div class="terms-text">
18
+                    <div class="terms-text">
19 19
                     <?php echo wp_kses_post( wpautop( $term_text ) ); ?>
20
-                </div>
20
+                    </div>
21 21
             <?php endif; ?>
22 22
 
23 23
             <div class="footer-text d-print-none">
Please login to merge, or discard this patch.
templates/invoice/invoice-meta.php 1 patch
Switch Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 /**
3 3
  * Displays the invoice meta data.
4 4
  *
@@ -7,23 +7,23 @@  discard block
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
11
-
12
-$class = ! is_singular( 'page' ) ? 'px-1' : '';
13
-?>
10
+    defined( 'ABSPATH' ) || exit;
14 11
 
12
+    $class = ! is_singular( 'page' ) ? 'px-1' : '';
13
+    ?>
14
+    
15 15
         <?php do_action( 'getpaid_before_invoice_meta', $invoice ); ?>
16
-        <div class="getpaid-invoice-meta-data">
16
+            <div class="getpaid-invoice-meta-data">
17 17
 
18 18
             <?php do_action( 'getpaid_before_invoice_meta_table', $invoice ); ?>
19 19
             <table class="table table-bordered">
20 20
                 <tbody>
21 21
 
22 22
                     <?php do_action( 'getpaid_before_invoice_meta_rows', $invoice ); ?>
23
-                    <?php foreach ( $meta as $key => $data ) : ?>
24
-
23
+                        <?php foreach ( $meta as $key => $data ) : ?>
24
+    
25 25
                         <?php if ( ! empty( $data['value'] ) ) : ?>
26
-
26
+    
27 27
                             <?php do_action( "getpaid_before_invoice_meta_$key", $invoice, $data ); ?>
28 28
 
29 29
                             <tr class="getpaid-invoice-meta-<?php echo esc_attr( $key ); ?>">
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
                             </tr>
40 40
 
41 41
                             <?php do_action( "getpaid_after_invoice_meta_$key", $invoice, $data ); ?>
42
-
42
+    
43 43
                         <?php endif; ?>
44
-
44
+    
45 45
                     <?php endforeach; ?>
46
-                    <?php do_action( 'getpaid_after_invoice_meta_rows', $invoice ); ?>
46
+                        <?php do_action( 'getpaid_after_invoice_meta_rows', $invoice ); ?>
47 47
 
48 48
                 </tbody>
49 49
             </table>
@@ -52,5 +52,5 @@  discard block
 block discarded – undo
52 52
 
53 53
         </div>
54 54
         <?php do_action( 'getpaid_after_invoice_meta', $invoice ); ?>
55
-
56
-<?php
55
+    
56
+    <?php
Please login to merge, or discard this patch.