Passed
Push — master ( 414b02...c77662 )
by Brian
04:42
created
templates/payment-forms/embed.php 1 patch
Indentation   +31 added lines, -31 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(
7
-				'type'    => 'warning',
8
-				'content' => __( 'No payment form or item selected', 'invoicing' ),
9
-			)
10
-		);
11
-		wp_die( __( 'No payment form or item selected', 'invoicing' ), 400 );
12
-	}
13
-
14
-	// Payment form or button?
15
-	if ( ! empty( $_GET['form'] ) ) {
16
-
17
-		$shortcode = sprintf(
18
-			'[getpaid form=%s]',
19
-			(int) urldecode( $_GET['form'] )
20
-		);
21
-
22
-	} else {
23
-
24
-		$shortcode = sprintf(
25
-			'[getpaid item=%s]',
26
-			esc_attr( urldecode( $_GET['item'] ) )
27
-		);
28
-
29
-	}
3
+    // Is the request set up correctly?
4
+    if ( empty( $_GET['form'] ) && empty( $_GET['item'] ) ) {
5
+        return aui()->alert(
6
+            array(
7
+                'type'    => 'warning',
8
+                'content' => __( 'No payment form or item selected', 'invoicing' ),
9
+            )
10
+        );
11
+        wp_die( __( 'No payment form or item selected', 'invoicing' ), 400 );
12
+    }
13
+
14
+    // Payment form or button?
15
+    if ( ! empty( $_GET['form'] ) ) {
16
+
17
+        $shortcode = sprintf(
18
+            '[getpaid form=%s]',
19
+            (int) urldecode( $_GET['form'] )
20
+        );
21
+
22
+    } else {
23
+
24
+        $shortcode = sprintf(
25
+            '[getpaid item=%s]',
26
+            esc_attr( urldecode( $_GET['item'] ) )
27
+        );
28
+
29
+    }
30 30
 
31 31
 ?>
32 32
 
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
 	<body class="body" style="font-weight: 400;">
52 52
 	<div class="container my-5" style="max-width: 820px;">
53 53
 			<?php
54
-				do_action( 'getpaid_payment_form_embed_top' );
55
-				echo do_shortcode( $shortcode );
56
-				do_action( 'getpaid_payment_form_embed_bottom' );
57
-			?>
54
+                do_action( 'getpaid_payment_form_embed_top' );
55
+                echo do_shortcode( $shortcode );
56
+                do_action( 'getpaid_payment_form_embed_bottom' );
57
+            ?>
58 58
 		</div>
59 59
 	</body>
60 60
 </html>
Please login to merge, or discard this patch.