Passed
Push — master ( b03641...18efaa )
by Brian
05:31
created
templates/payment-forms/cart.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -7,27 +7,27 @@  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
 // Cart table columns.
13 13
 $columns = array(
14
-    'name'     => __( 'Item', 'invoicing' ),
15
-    'price'    => __( 'Price', 'invoicing' ),
16
-    'quantity' => __( 'Quantity', 'invoicing' ),
17
-    'subtotal' => __( 'Subtotal', 'invoicing' ),
14
+    'name'     => __('Item', 'invoicing'),
15
+    'price'    => __('Price', 'invoicing'),
16
+    'quantity' => __('Quantity', 'invoicing'),
17
+    'subtotal' => __('Subtotal', 'invoicing'),
18 18
 );
19 19
 
20
-if ( ! empty( $form->invoice ) ) {
21
-    $columns = getpaid_invoice_item_columns( $form->invoice );
20
+if (!empty($form->invoice)) {
21
+    $columns = getpaid_invoice_item_columns($form->invoice);
22 22
 }
23 23
 
24
-if ( isset( $columns['tax_rate'] ) ) {
25
-    unset( $columns['tax_rate'] );
24
+if (isset($columns['tax_rate'])) {
25
+    unset($columns['tax_rate']);
26 26
 }
27 27
 
28
-$columns = apply_filters( 'getpaid_payment_form_cart_table_columns', $columns, $form );
28
+$columns = apply_filters('getpaid_payment_form_cart_table_columns', $columns, $form);
29 29
 
30
-do_action( 'getpaid_before_payment_form_cart', $form );
30
+do_action('getpaid_before_payment_form_cart', $form);
31 31
 
32 32
 ?>
33 33
     <div class="getpaid-payment-form-items-cart border form-group">
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
 
36 36
         <div class="getpaid-payment-form-items-cart-header font-weight-bold bg-light border-bottom py-2 px-3">
37 37
             <div class="form-row">
38
-                <?php foreach ( $columns as $key => $label ) : ?>
39
-                    <div class="<?php echo 'name' == $key ? 'col-12 col-sm-6' : 'col-12 col-sm' ?> getpaid-form-cart-item-<?php echo sanitize_html_class( $key ); ?>">
40
-                        <?php echo sanitize_text_field( $label ); ?>
38
+                <?php foreach ($columns as $key => $label) : ?>
39
+                    <div class="<?php echo 'name' == $key ? 'col-12 col-sm-6' : 'col-12 col-sm' ?> getpaid-form-cart-item-<?php echo sanitize_html_class($key); ?>">
40
+                        <?php echo sanitize_text_field($label); ?>
41 41
                     </div>
42 42
                 <?php endforeach; ?>
43 43
             </div>
@@ -46,16 +46,16 @@  discard block
 block discarded – undo
46 46
         <?php
47 47
 
48 48
             // Display the item totals.
49
-            foreach ( $form->get_items() as $item ) {
50
-                wpinv_get_template( 'payment-forms/cart-item.php', compact( 'form', 'item', 'columns' ) );
49
+            foreach ($form->get_items() as $item) {
50
+                wpinv_get_template('payment-forms/cart-item.php', compact('form', 'item', 'columns'));
51 51
             }
52 52
 
53 53
             // Display the cart totals.
54
-            wpinv_get_template( 'payment-forms/cart-totals.php', compact( 'form' ) );
54
+            wpinv_get_template('payment-forms/cart-totals.php', compact('form'));
55 55
 
56 56
         ?>
57 57
     </div>
58 58
 
59 59
 <?php 
60 60
 
61
-do_action( 'getpaid_after_payment_form_cart', $form );
61
+do_action('getpaid_after_payment_form_cart', $form);
Please login to merge, or discard this patch.