Passed
Pull Request — master (#849)
by
unknown
09:57
created
templates/subscriptions/subscriptions-table-row.php 1 patch
Switch Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -20,40 +20,40 @@
 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
-			);
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 30
 
31
-			echo wp_kses_post( "<a href='$url' class='font-weight-bold text-decoration-none'>$id_label</a>" );
32
-			break;
31
+			    echo wp_kses_post( "<a href='$url' class='font-weight-bold text-decoration-none'>$id_label</a>" );
32
+			    break;
33 33
 
34
-		case 'status':
35
-			echo wp_kses_post( $subscription->get_status_label_html() );
36
-			break;
34
+		    case 'status':
35
+			    echo wp_kses_post( $subscription->get_status_label_html() );
36
+			    break;
37 37
 
38
-		case 'renewal-date':
39
-			$renewal = getpaid_format_date_value( $subscription->get_next_renewal_date() );
40
-			echo $subscription->is_active() ? esc_html( $renewal ) : '&mdash;';
41
-			break;
38
+		    case 'renewal-date':
39
+			    $renewal = getpaid_format_date_value( $subscription->get_next_renewal_date() );
40
+			    echo $subscription->is_active() ? esc_html( $renewal ) : '&mdash;';
41
+			    break;
42 42
 
43
-		case 'amount':
44
-			$frequency = getpaid_get_subscription_period_label( $subscription->get_period(), $subscription->get_frequency(), '' );
45
-			$amount    = wpinv_price( $subscription->get_recurring_amount(), $subscription->get_parent_payment()->get_currency() );
46
-			echo wp_kses_post( "<span>$amount</span> / <span class='getpaid-item-recurring-period'>$frequency</span>" );
47
-			break;
43
+		    case 'amount':
44
+			    $frequency = getpaid_get_subscription_period_label( $subscription->get_period(), $subscription->get_frequency(), '' );
45
+			    $amount    = wpinv_price( $subscription->get_recurring_amount(), $subscription->get_parent_payment()->get_currency() );
46
+			    echo wp_kses_post( "<span>$amount</span> / <span class='getpaid-item-recurring-period'>$frequency</span>" );
47
+			    break;
48 48
 
49
-		case 'actions':
50
-			echo wp_kses_post( $widget->add_row_actions( '', $subscription ) );
51
-			break;
49
+		    case 'actions':
50
+			    echo wp_kses_post( $widget->add_row_actions( '', $subscription ) );
51
+			    break;
52 52
 
53
-		endswitch;
53
+		    endswitch;
54 54
 
55
-		do_action( "getpaid_subscriptions_frontend_subscription_table_$column", $subscription );
55
+		    do_action( "getpaid_subscriptions_frontend_subscription_table_$column", $subscription );
56 56
 
57
-	echo '</td>';
57
+	    echo '</td>';
58 58
 
59
-endforeach;
59
+    endforeach;
Please login to merge, or discard this patch.