Passed
Push — master ( 9a5a12...d6bea2 )
by Brian
04:47
created
includes/admin/meta-boxes/class-getpaid-meta-box-invoice-payment-meta.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  */
9 9
 
10 10
 if ( ! defined( 'ABSPATH' ) ) {
11
-	exit; // Exit if accessed directly
11
+    exit; // Exit if accessed directly
12 12
 }
13 13
 
14 14
 /**
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
 class GetPaid_Meta_Box_Invoice_Payment_Meta {
18 18
 
19 19
     /**
20
-	 * Output the metabox.
21
-	 *
22
-	 * @param WP_Post $post
23
-	 */
20
+     * Output the metabox.
21
+     *
22
+     * @param WP_Post $post
23
+     */
24 24
     public static function output( $post ) {
25 25
 
26 26
         // Prepare the invoice.
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  *
8 8
  */
9 9
 
10
-if ( ! defined( 'ABSPATH' ) ) {
10
+if (!defined('ABSPATH')) {
11 11
 	exit; // Exit if accessed directly
12 12
 }
13 13
 
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
 	 *
22 22
 	 * @param WP_Post $post
23 23
 	 */
24
-    public static function output( $post ) {
24
+    public static function output($post) {
25 25
 
26 26
         // Prepare the invoice.
27
-        $invoice = new WPInv_Invoice( $post );
27
+        $invoice = new WPInv_Invoice($post);
28 28
 
29 29
         ?>
30 30
 
@@ -40,20 +40,20 @@  discard block
 block discarded – undo
40 40
 
41 41
                     <?php
42 42
 
43
-                        if ( $invoice->is_draft() ) {
43
+                        if ($invoice->is_draft()) {
44 44
 
45 45
                             // Set gateway.
46 46
                             echo aui()->select(
47 47
                                 array(
48 48
                                     'id'               => 'wpinv_gateway',
49 49
                                     'name'             => 'wpinv_gateway',
50
-                                    'label'            => __( 'Gateway:', 'invoicing' ),
50
+                                    'label'            => __('Gateway:', 'invoicing'),
51 51
                                     'label_type'       => 'vertical',
52
-                                    'placeholder'      => __( 'Select Gateway', 'invoicing' ),
52
+                                    'placeholder'      => __('Select Gateway', 'invoicing'),
53 53
                                     'value'            => wpinv_get_default_gateway(),
54 54
                                     'select2'          => true,
55 55
                                     'data-allow-clear' => 'false',
56
-                                    'options'          => wp_list_pluck( wpinv_get_enabled_payment_gateways( true ), 'admin_label' ),
56
+                                    'options'          => wp_list_pluck(wpinv_get_enabled_payment_gateways(true), 'admin_label'),
57 57
                                 )
58 58
                             );
59 59
 
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
                                     'id'          => 'wpinv_key',
66 66
                                     'name'        => 'wpinv_key',
67 67
                                     'label'       => sprintf(
68
-                                        __( '%s Key:', 'invoicing' ),
69
-                                        ucfirst( $invoice->get_invoice_quote_type() )
68
+                                        __('%s Key:', 'invoicing'),
69
+                                        ucfirst($invoice->get_invoice_quote_type())
70 70
                                     ),
71 71
                                     'label_type'  => 'vertical',
72 72
                                     'class'       => 'form-control-sm',
73
-                                    'value'       => $invoice->get_key( 'edit' ),
73
+                                    'value'       => $invoice->get_key('edit'),
74 74
                                     'extra_attributes' => array(
75 75
                                         'onclick'  => 'this.select();',
76 76
                                         'readonly' => 'true',
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
                                     'id'          => 'wpinv_view_url',
86 86
                                     'name'        => 'wpinv_view_url',
87 87
                                     'label'       => sprintf(
88
-                                        __( '%s URL:', 'invoicing' ),
89
-                                        ucfirst( $invoice->get_invoice_quote_type() )
90
-                                    ) . '&nbsp;<a href="' . esc_url_raw( $invoice->get_view_url() ) . '" title="' . __( 'View invoice', 'invoicing' ) . '" target="_blank"><i class="fas fa-external-link-alt fa-fw"></i></a>',
88
+                                        __('%s URL:', 'invoicing'),
89
+                                        ucfirst($invoice->get_invoice_quote_type())
90
+                                    ) . '&nbsp;<a href="' . esc_url_raw($invoice->get_view_url()) . '" title="' . __('View invoice', 'invoicing') . '" target="_blank"><i class="fas fa-external-link-alt fa-fw"></i></a>',
91 91
                                     'label_type'  => 'vertical',
92 92
                                     'class'       => 'form-control-sm',
93 93
                                     'value'       => $invoice->get_view_url(),
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                             );
100 100
 
101 101
                             // If the invoice is paid...
102
-                            if ( $invoice->is_paid() || $invoice->is_refunded() ) {
102
+                            if ($invoice->is_paid() || $invoice->is_refunded()) {
103 103
 
104 104
                                 // Gateway.
105 105
                                 echo aui()->input(
@@ -107,10 +107,10 @@  discard block
 block discarded – undo
107 107
                                         'type'        => 'text',
108 108
                                         'id'          => 'wpinv_gateway',
109 109
                                         'name'        => '',
110
-                                        'label'       => __( 'Gateway:', 'invoicing' ),
110
+                                        'label'       => __('Gateway:', 'invoicing'),
111 111
                                         'label_type'  => 'vertical',
112 112
                                         'class'       => 'form-control-sm',
113
-                                        'value'       => wpinv_get_gateway_admin_label( $invoice->get_gateway( 'edit' ) ),
113
+                                        'value'       => wpinv_get_gateway_admin_label($invoice->get_gateway('edit')),
114 114
                                         'extra_attributes' => array(
115 115
                                             'onclick'  => 'this.select();',
116 116
                                             'readonly' => 'true',
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
                                         'type'        => 'text',
125 125
                                         'id'          => 'wpinv_transaction_id',
126 126
                                         'name'        => 'wpinv_transaction_id',
127
-                                        'label'       => __( 'Transaction ID:', 'invoicing' ),
127
+                                        'label'       => __('Transaction ID:', 'invoicing'),
128 128
                                         'label_type'  => 'vertical',
129 129
                                         'class'       => 'form-control-sm',
130
-                                        'value'       => $invoice->get_transaction_id( 'edit' ),
131
-                                        'help_text'   => apply_filters( 'wpinv_invoice_transaction_link_' . $invoice->get_gateway( 'edit' ), '', $invoice->get_transaction_id(), $invoice ),
130
+                                        'value'       => $invoice->get_transaction_id('edit'),
131
+                                        'help_text'   => apply_filters('wpinv_invoice_transaction_link_' . $invoice->get_gateway('edit'), '', $invoice->get_transaction_id(), $invoice),
132 132
                                         'extra_attributes' => array(
133 133
                                             'onclick'  => 'this.select();',
134 134
                                             'readonly' => 'true',
@@ -142,10 +142,10 @@  discard block
 block discarded – undo
142 142
                                         'type'        => 'text',
143 143
                                         'id'          => 'wpinv_currency',
144 144
                                         'name'        => 'wpinv_currency',
145
-                                        'label'       => __( 'Currency:', 'invoicing' ),
145
+                                        'label'       => __('Currency:', 'invoicing'),
146 146
                                         'label_type'  => 'vertical',
147 147
                                         'class'       => 'form-control-sm',
148
-                                        'value'       => $invoice->get_currency( 'edit' ),
148
+                                        'value'       => $invoice->get_currency('edit'),
149 149
                                         'extra_attributes' => array(
150 150
                                             'onclick'  => 'this.select();',
151 151
                                             'readonly' => 'true',
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
                             } else {
157 157
 
158
-                                if ( 'wpi_invoice' == $invoice->get_post_type() ) {
158
+                                if ('wpi_invoice' == $invoice->get_post_type()) {
159 159
 
160 160
                                     // Payment URL.
161 161
                                     echo aui()->input(
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
                                             'type'        => 'text',
164 164
                                             'id'          => 'wpinv_payment_url',
165 165
                                             'name'        => 'wpinv_payment_url',
166
-                                            'label'       => __( 'Payment URL:', 'invoicing' ),
166
+                                            'label'       => __('Payment URL:', 'invoicing'),
167 167
                                             'label_type'  => 'vertical',
168 168
                                             'class'       => 'form-control-sm',
169 169
                                             'value'       => $invoice->get_checkout_payment_url(),
@@ -179,13 +179,13 @@  discard block
 block discarded – undo
179 179
                                         array(
180 180
                                             'id'               => 'wpinv_gateway',
181 181
                                             'name'             => 'wpinv_gateway',
182
-                                            'label'            => __( 'Gateway:', 'invoicing' ),
182
+                                            'label'            => __('Gateway:', 'invoicing'),
183 183
                                             'label_type'       => 'vertical',
184
-                                            'placeholder'      => __( 'Select Gateway', 'invoicing' ),
185
-                                            'value'            => $invoice->get_gateway( 'edit' ),
184
+                                            'placeholder'      => __('Select Gateway', 'invoicing'),
185
+                                            'value'            => $invoice->get_gateway('edit'),
186 186
                                             'select2'          => true,
187 187
                                             'data-allow-clear' => 'false',
188
-                                            'options'          => wp_list_pluck( wpinv_get_enabled_payment_gateways( true ), 'admin_label' ),
188
+                                            'options'          => wp_list_pluck(wpinv_get_enabled_payment_gateways(true), 'admin_label'),
189 189
                                         )
190 190
                                     );
191 191
 
Please login to merge, or discard this patch.
includes/admin/meta-boxes/class-getpaid-meta-box-invoice-details.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  */
9 9
 
10 10
 if ( ! defined( 'ABSPATH' ) ) {
11
-	exit; // Exit if accessed directly
11
+    exit; // Exit if accessed directly
12 12
 }
13 13
 
14 14
 /**
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
 class GetPaid_Meta_Box_Invoice_Details {
18 18
 
19 19
     /**
20
-	 * Output the metabox.
21
-	 *
22
-	 * @param WP_Post $post
23
-	 */
20
+     * Output the metabox.
21
+     *
22
+     * @param WP_Post $post
23
+     */
24 24
     public static function output( $post ) {
25 25
 
26 26
         // Prepare the invoice.
Please login to merge, or discard this patch.
Spacing   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  *
8 8
  */
9 9
 
10
-if ( ! defined( 'ABSPATH' ) ) {
10
+if (!defined('ABSPATH')) {
11 11
 	exit; // Exit if accessed directly
12 12
 }
13 13
 
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
21 21
 	 *
22 22
 	 * @param WP_Post $post
23 23
 	 */
24
-    public static function output( $post ) {
24
+    public static function output($post) {
25 25
 
26 26
         // Prepare the invoice.
27
-        $invoice = new WPInv_Invoice( $post );
27
+        $invoice = new WPInv_Invoice($post);
28 28
 
29 29
         // Nonce field.
30
-        wp_nonce_field( 'wpinv_details', 'wpinv_details_nonce' ) ;
30
+        wp_nonce_field('wpinv_details', 'wpinv_details_nonce');
31 31
 
32 32
 
33 33
         ?>
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 
47 47
                 <div class="bsui" style="margin-top: 1.5rem">
48 48
 
49
-                    <?php do_action( 'getpaid_invoice_edit_before_viewed_by_customer', $invoice ); ?>
50
-                    <?php if ( ! $invoice->is_draft() ) : ?>
49
+                    <?php do_action('getpaid_invoice_edit_before_viewed_by_customer', $invoice); ?>
50
+                    <?php if (!$invoice->is_draft()) : ?>
51 51
                         <div class="form-group">
52
-                            <strong><?php _e( 'Viewed by Customer:', 'invoicing' );?></strong>
53
-                            <?php ( $invoice->get_is_viewed() ) ? _e( 'Yes', 'invoicing' ) : _e( 'No', 'invoicing' ); ?>
52
+                            <strong><?php _e('Viewed by Customer:', 'invoicing'); ?></strong>
53
+                            <?php ($invoice->get_is_viewed()) ? _e('Yes', 'invoicing') : _e('No', 'invoicing'); ?>
54 54
                         </div>
55 55
                     <?php endif; ?>
56 56
 
@@ -58,13 +58,13 @@  discard block
 block discarded – undo
58 58
 
59 59
                         // Date created.
60 60
                         $label = sprintf(
61
-                            __( '%s Date:', 'invoicing' ),
62
-                            ucfirst( $invoice->get_invoice_quote_type() )
61
+                            __('%s Date:', 'invoicing'),
62
+                            ucfirst($invoice->get_invoice_quote_type())
63 63
                         );
64 64
 
65
-                        $info  = sprintf(
66
-                            __( 'The date this %s was created.', 'invoicing' ),
67
-                            strtolower( $invoice->get_invoice_quote_type() )
65
+                        $info = sprintf(
66
+                            __('The date this %s was created.', 'invoicing'),
67
+                            strtolower($invoice->get_invoice_quote_type())
68 68
                         );
69 69
 
70 70
                         echo aui()->input(
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
                                 'type'        => 'datepicker',
73 73
                                 'id'          => 'wpinv_date_created',
74 74
                                 'name'        => 'date_created',
75
-                                'label'       => $label . getpaid_get_help_tip( $info ),
75
+                                'label'       => $label . getpaid_get_help_tip($info),
76 76
                                 'label_type'  => 'vertical',
77 77
                                 'placeholder' => 'YYYY-MM-DD 00:00',
78 78
                                 'class'       => 'form-control-sm',
79
-                                'value'       => $invoice->get_date_created( 'edit' ),
79
+                                'value'       => $invoice->get_date_created('edit'),
80 80
                                 'extra_attributes' => array(
81 81
                                     'data-enable-time' => 'true',
82 82
                                     'data-time_24hr'   => 'true',
@@ -87,15 +87,15 @@  discard block
 block discarded – undo
87 87
                         );
88 88
 
89 89
                         // Date paid.
90
-                        $date_paid = $invoice->get_date_completed( 'edit' );
91
-                        if ( ! empty( $date_paid ) && $invoice->is_paid() ) {
90
+                        $date_paid = $invoice->get_date_completed('edit');
91
+                        if (!empty($date_paid) && $invoice->is_paid()) {
92 92
 
93 93
                             echo aui()->input(
94 94
                                 array(
95 95
                                     'type'        => 'text',
96 96
                                     'id'          => 'wpinv_date_completed',
97 97
                                     'name'        => 'wpinv_date_completed',
98
-                                    'label'       => __( 'Date Completed:', 'invoicing' ),
98
+                                    'label'       => __('Date Completed:', 'invoicing'),
99 99
                                     'label_type'  => 'vertical',
100 100
                                     'class'       => 'form-control-sm',
101 101
                                     'value'       => $date_paid,
@@ -105,18 +105,18 @@  discard block
 block discarded – undo
105 105
                         }
106 106
 
107 107
                         // Due date.
108
-                        if ( $invoice->is_type( 'invoice' ) && wpinv_get_option( 'overdue_active' ) && ( ! $invoice->is_paid() || $invoice->is_draft() ) ) {
108
+                        if ($invoice->is_type('invoice') && wpinv_get_option('overdue_active') && (!$invoice->is_paid() || $invoice->is_draft())) {
109 109
 
110 110
                             echo aui()->input(
111 111
                                 array(
112 112
                                     'type'        => 'datepicker',
113 113
                                     'id'          => 'wpinv_due_date',
114 114
                                     'name'        => 'wpinv_due_date',
115
-                                    'label'       => __( 'Due Date:', 'invoicing' ) . getpaid_get_help_tip( __( 'Leave blank to disable automated reminder emails for this invoice.', 'invoicing' ) ),
115
+                                    'label'       => __('Due Date:', 'invoicing') . getpaid_get_help_tip(__('Leave blank to disable automated reminder emails for this invoice.', 'invoicing')),
116 116
                                     'label_type'  => 'vertical',
117
-                                    'placeholder' => __( 'No due date', 'invoicing' ),
117
+                                    'placeholder' => __('No due date', 'invoicing'),
118 118
                                     'class'       => 'form-control-sm',
119
-                                    'value'       => $invoice->get_due_date( 'edit' ),
119
+                                    'value'       => $invoice->get_due_date('edit'),
120 120
                                     'extra_attributes' => array(
121 121
                                         'data-enable-time' => 'true',
122 122
                                         'data-time_24hr'   => 'true',
@@ -128,39 +128,39 @@  discard block
 block discarded – undo
128 128
 
129 129
                         }
130 130
 
131
-                        do_action( 'wpinv_meta_box_details_after_due_date', $invoice->get_id() );
132
-                        do_action( 'getpaid_metabox_after_due_date', $invoice );
131
+                        do_action('wpinv_meta_box_details_after_due_date', $invoice->get_id());
132
+                        do_action('getpaid_metabox_after_due_date', $invoice);
133 133
 
134 134
                         // Status.
135 135
                         $label = sprintf(
136
-                            __( '%s Status:', 'invoicing' ),
137
-                            ucfirst( $invoice->get_invoice_quote_type() )
136
+                            __('%s Status:', 'invoicing'),
137
+                            ucfirst($invoice->get_invoice_quote_type())
138 138
                         );
139 139
 
140
-                        $status = $invoice->get_status( 'edit' );
140
+                        $status = $invoice->get_status('edit');
141 141
                         echo aui()->select(
142 142
                             array(
143 143
                                 'id'               => 'wpinv_status',
144 144
                                 'name'             => 'wpinv_status',
145 145
                                 'label'            => $label,
146 146
                                 'label_type'       => 'vertical',
147
-                                'placeholder'      => __( 'Select Status', 'invoicing' ),
148
-                                'value'            => array_key_exists( $status, $invoice->get_all_statuses() ) ? $status : $invoice->get_default_status(),
147
+                                'placeholder'      => __('Select Status', 'invoicing'),
148
+                                'value'            => array_key_exists($status, $invoice->get_all_statuses()) ? $status : $invoice->get_default_status(),
149 149
                                 'select2'          => true,
150 150
                                 'data-allow-clear' => 'false',
151
-                                'options'          => wpinv_get_invoice_statuses( true, false, $invoice )
151
+                                'options'          => wpinv_get_invoice_statuses(true, false, $invoice)
152 152
                             )
153 153
                         );
154 154
 
155 155
                         // Invoice number.
156 156
                         $label = sprintf(
157
-                            __( '%s Number:', 'invoicing' ),
158
-                            ucfirst( $invoice->get_invoice_quote_type() )
157
+                            __('%s Number:', 'invoicing'),
158
+                            ucfirst($invoice->get_invoice_quote_type())
159 159
                         );
160 160
 
161
-                        $info  = sprintf(
162
-                            __( 'Each %s number must be unique.', 'invoicing' ),
163
-                            strtolower( $invoice->get_invoice_quote_type() )
161
+                        $info = sprintf(
162
+                            __('Each %s number must be unique.', 'invoicing'),
163
+                            strtolower($invoice->get_invoice_quote_type())
164 164
                         );
165 165
 
166 166
                         echo aui()->input(
@@ -168,11 +168,11 @@  discard block
 block discarded – undo
168 168
                                 'type'        => 'text',
169 169
                                 'id'          => 'wpinv_number',
170 170
                                 'name'        => 'wpinv_number',
171
-                                'label'       => $label . getpaid_get_help_tip( $info ),
171
+                                'label'       => $label . getpaid_get_help_tip($info),
172 172
                                 'label_type'  => 'vertical',
173
-                                'placeholder' => __( 'Autogenerate', 'invoicing' ),
173
+                                'placeholder' => __('Autogenerate', 'invoicing'),
174 174
                                 'class'       => 'form-control-sm',
175
-                                'value'       => $invoice->get_number( 'edit' ),
175
+                                'value'       => $invoice->get_number('edit'),
176 176
                             )
177 177
                         );
178 178
 
@@ -182,15 +182,15 @@  discard block
 block discarded – undo
182 182
                                 'type'        => 'text',
183 183
                                 'id'          => 'wpinv_cc',
184 184
                                 'name'        => 'wpinv_cc',
185
-                                'label'       => __( 'Email CC:', 'invoicing' ) . getpaid_get_help_tip( __( 'Enter a comma separated list of other emails that should be notified about the invoice.', 'invoicing' ) ),
185
+                                'label'       => __('Email CC:', 'invoicing') . getpaid_get_help_tip(__('Enter a comma separated list of other emails that should be notified about the invoice.', 'invoicing')),
186 186
                                 'label_type'  => 'vertical',
187
-                                'placeholder' => __( '[email protected], [email protected]', 'invoicing' ),
187
+                                'placeholder' => __('[email protected], [email protected]', 'invoicing'),
188 188
                                 'class'       => 'form-control-sm',
189
-                                'value'       => $invoice->get_email_cc( 'edit' ),
189
+                                'value'       => $invoice->get_email_cc('edit'),
190 190
                             )
191 191
                         );
192 192
 
193
-                        if ( ! $invoice->is_paid() && ! $invoice->is_refunded() ) {
193
+                        if (!$invoice->is_paid() && !$invoice->is_refunded()) {
194 194
 
195 195
                             // Apply a discount.
196 196
                             echo aui()->input(
@@ -198,25 +198,25 @@  discard block
 block discarded – undo
198 198
                                     'type'        => 'text',
199 199
                                     'id'          => 'wpinv_discount_code',
200 200
                                     'name'        => 'wpinv_discount_code',
201
-                                    'label'       => __( 'Discount Code:', 'invoicing' ),
202
-                                    'placeholder' => __( 'Apply Discount', 'invoicing' ),
201
+                                    'label'       => __('Discount Code:', 'invoicing'),
202
+                                    'placeholder' => __('Apply Discount', 'invoicing'),
203 203
                                     'label_type'  => 'vertical',
204 204
                                     'class'       => 'form-control-sm getpaid-recalculate-prices-on-change',
205
-                                    'value'       => $invoice->get_discount_code( 'edit' ),
205
+                                    'value'       => $invoice->get_discount_code('edit'),
206 206
                                 )
207 207
                             );
208 208
 
209
-                        } else if ( $invoice->get_discount_code( 'edit' ) ) {
209
+                        } else if ($invoice->get_discount_code('edit')) {
210 210
 
211 211
                             echo aui()->input(
212 212
                                 array(
213 213
                                     'type'        => 'text',
214 214
                                     'id'          => 'wpinv_discount_code',
215 215
                                     'name'        => 'wpinv_discount_code',
216
-                                    'label'       => __( 'Discount Code:', 'invoicing' ),
216
+                                    'label'       => __('Discount Code:', 'invoicing'),
217 217
                                     'label_type'  => 'vertical',
218 218
                                     'class'       => 'form-control-sm',
219
-                                    'value'       => $invoice->get_discount_code( 'edit' ),
219
+                                    'value'       => $invoice->get_discount_code('edit'),
220 220
                                     'extra_attributes' => array(
221 221
                                         'onclick'  => 'this.select();',
222 222
                                         'readonly' => 'true',
@@ -226,17 +226,17 @@  discard block
 block discarded – undo
226 226
 
227 227
                         }
228 228
 
229
-                        do_action( 'wpinv_meta_box_details_inner', $invoice->get_id() );
229
+                        do_action('wpinv_meta_box_details_inner', $invoice->get_id());
230 230
 
231 231
                         // Disable taxes.
232
-                        if ( wpinv_use_taxes() && ! ( $invoice->is_paid() || $invoice->is_refunded() ) ) {
232
+                        if (wpinv_use_taxes() && !($invoice->is_paid() || $invoice->is_refunded())) {
233 233
 
234 234
                             echo aui()->input(
235 235
                                 array(
236 236
                                     'id'          => 'wpinv_taxable',
237 237
                                     'name'        => 'disable_taxes',
238 238
                                     'type'        => 'checkbox',
239
-                                    'label'       => __( 'Disable taxes', 'invoicing' ),
239
+                                    'label'       => __('Disable taxes', 'invoicing'),
240 240
                                     'value'       => '1',
241 241
                                     'checked'     => (bool) $invoice->get_disable_taxes(),
242 242
                                     'class'       => 'getpaid-recalculate-prices-on-change',
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 
246 246
                         }
247 247
 
248
-                        if ( $invoice->is_type( 'invoice' ) ) {
248
+                        if ($invoice->is_type('invoice')) {
249 249
 
250 250
                             // Send to customer.
251 251
                             echo aui()->input(
@@ -253,15 +253,15 @@  discard block
 block discarded – undo
253 253
                                     'id'          => 'wpinv_send_to_customer',
254 254
                                     'name'        => 'send_to_customer',
255 255
                                     'type'        => 'checkbox',
256
-                                    'label'       => __( 'Send invoice to customer after saving', 'invoicing' ),
256
+                                    'label'       => __('Send invoice to customer after saving', 'invoicing'),
257 257
                                     'value'       => '1',
258
-                                    'checked'     => $invoice->is_draft() && (bool) wpinv_get_option( 'email_user_invoice_active', true ),
258
+                                    'checked'     => $invoice->is_draft() && (bool) wpinv_get_option('email_user_invoice_active', true),
259 259
                                 )
260 260
                             );
261 261
 
262 262
                         }
263 263
 
264
-                        do_action( 'getpaid_metabox_after_invoice_details', $invoice );
264
+                        do_action('getpaid_metabox_after_invoice_details', $invoice);
265 265
 
266 266
                     ?>
267 267
 
Please login to merge, or discard this patch.
includes/admin/meta-boxes/class-getpaid-meta-box-resend-invoice.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 if ( ! defined( 'ABSPATH' ) ) {
9
-	exit; // Exit if accessed directly
9
+    exit; // Exit if accessed directly
10 10
 }
11 11
 
12 12
 /**
@@ -15,10 +15,10 @@  discard block
 block discarded – undo
15 15
 class GetPaid_Meta_Box_Resend_Invoice {
16 16
 
17 17
     /**
18
-	 * Output the metabox.
19
-	 *
20
-	 * @param WP_Post $post
21
-	 */
18
+     * Output the metabox.
19
+     *
20
+     * @param WP_Post $post
21
+     */
22 22
     public static function output( $post ) {
23 23
 
24 24
         // Fetch the invoice.
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  *
6 6
  */
7 7
 
8
-if ( ! defined( 'ABSPATH' ) ) {
8
+if (!defined('ABSPATH')) {
9 9
 	exit; // Exit if accessed directly
10 10
 }
11 11
 
@@ -19,12 +19,12 @@  discard block
 block discarded – undo
19 19
 	 *
20 20
 	 * @param WP_Post $post
21 21
 	 */
22
-    public static function output( $post ) {
22
+    public static function output($post) {
23 23
 
24 24
         // Fetch the invoice.
25
-        $invoice = new WPInv_Invoice( $post );
25
+        $invoice = new WPInv_Invoice($post);
26 26
 
27
-        do_action( 'wpinv_metabox_resend_invoice_before', $invoice );
27
+        do_action('wpinv_metabox_resend_invoice_before', $invoice);
28 28
 
29 29
         $invoice_actions = array(
30 30
             'resend-email' => array(
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
                     'getpaid-nonce',
39 39
                     'getpaid-nonce'
40 40
                 ),
41
-                'label' => __( 'Resend Invoice', 'invoicing' ),
41
+                'label' => __('Resend Invoice', 'invoicing'),
42 42
             )
43 43
         );
44 44
 
45
-        if ( $invoice->needs_payment() ) {
45
+        if ($invoice->needs_payment()) {
46 46
 
47 47
             $invoice_actions['send-reminder'] = array(
48 48
                 'url' => wp_nonce_url(
@@ -55,29 +55,29 @@  discard block
 block discarded – undo
55 55
                     'getpaid-nonce',
56 56
                     'getpaid-nonce'
57 57
                 ),
58
-                'label' => __( 'Send Reminder', 'invoicing' ),
58
+                'label' => __('Send Reminder', 'invoicing'),
59 59
             );
60 60
 
61 61
         }
62 62
 
63
-        $invoice_actions = apply_filters( 'getpaid_edit_invoice_actions', $invoice_actions, $invoice );
63
+        $invoice_actions = apply_filters('getpaid_edit_invoice_actions', $invoice_actions, $invoice);
64 64
 
65
-        foreach ( $invoice_actions as $key => $action ) {
65
+        foreach ($invoice_actions as $key => $action) {
66 66
 
67
-            if ( 'resend-email' === $key ) {
68
-                echo wpautop( __( "This will send a copy of the invoice to the customer's email address.", 'invoicing' ) );
67
+            if ('resend-email' === $key) {
68
+                echo wpautop(__("This will send a copy of the invoice to the customer's email address.", 'invoicing'));
69 69
             }
70 70
 
71 71
             printf(
72 72
                 '<p class="wpi-meta-row wpi-%s"><a href="%s" class="button button-secondary">%s</a>',
73
-                esc_attr( $key ),
74
-                esc_url( $action['url'] ),
75
-                esc_html( $action['label'] )
73
+                esc_attr($key),
74
+                esc_url($action['url']),
75
+                esc_html($action['label'])
76 76
             );
77 77
 
78 78
         }
79 79
 
80
-        do_action( 'wpinv_metabox_resend_invoice_after', $invoice );
80
+        do_action('wpinv_metabox_resend_invoice_after', $invoice);
81 81
 
82 82
     }
83 83
 
Please login to merge, or discard this patch.
includes/admin/meta-boxes/class-mb-invoice-notes.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,39 +1,39 @@
 block discarded – undo
1 1
 <?php
2 2
 // MUST have WordPress.
3
-if ( !defined( 'WPINC' ) ) {
4
-    exit( 'Do NOT access this file directly: ' . basename( __FILE__ ) );
3
+if (!defined('WPINC')) {
4
+    exit('Do NOT access this file directly: ' . basename(__FILE__));
5 5
 }
6 6
 
7 7
 class WPInv_Meta_Box_Notes {
8
-    public static function output( $post ) {
8
+    public static function output($post) {
9 9
         global $post;
10 10
 
11
-        $notes = wpinv_get_invoice_notes( $post->ID );
11
+        $notes = wpinv_get_invoice_notes($post->ID);
12 12
 
13 13
         echo '<ul class="invoice_notes">';
14 14
 
15
-        if ( $notes ) {
16
-            foreach( $notes as $note ) {
17
-                wpinv_get_invoice_note_line_item( $note );
15
+        if ($notes) {
16
+            foreach ($notes as $note) {
17
+                wpinv_get_invoice_note_line_item($note);
18 18
             }
19 19
 
20 20
         } else {
21
-            echo '<li>' . __( 'There are no notes yet.', 'invoicing' ) . '</li>';
21
+            echo '<li>' . __('There are no notes yet.', 'invoicing') . '</li>';
22 22
         }
23 23
 
24 24
         echo '</ul>';
25 25
         ?>
26 26
         <div class="add_note">
27
-            <h4><?php _e( 'Add note', 'invoicing' ); ?></h4>
27
+            <h4><?php _e('Add note', 'invoicing'); ?></h4>
28 28
             <p>
29 29
                 <textarea type="text" name="invoice_note" id="add_invoice_note" class="input-text" cols="20" rows="5"></textarea>
30 30
             </p>
31 31
             <p>
32 32
                 <select name="invoice_note_type" id="invoice_note_type" class="regular-text">
33
-                    <option value=""><?php _e( 'Private note', 'invoicing' ); ?></option>
34
-                    <option value="customer"><?php _e( 'Note to customer', 'invoicing' ); ?></option>
33
+                    <option value=""><?php _e('Private note', 'invoicing'); ?></option>
34
+                    <option value="customer"><?php _e('Note to customer', 'invoicing'); ?></option>
35 35
                 </select>
36
-                <a href="#" class="add_note button"><?php _e( 'Add', 'invoicing' ); ?></a> <span class="description"><?php _e( 'Add a note for your reference, or add a customer note (the user will be notified).', 'invoicing' ); ?></span>
36
+                <a href="#" class="add_note button"><?php _e('Add', 'invoicing'); ?></a> <span class="description"><?php _e('Add a note for your reference, or add a customer note (the user will be notified).', 'invoicing'); ?></span>
37 37
             </p>
38 38
         </div>
39 39
         <?php
Please login to merge, or discard this patch.
templates/invoice/details.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,26 +7,26 @@
 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
-        <?php do_action( 'getpaid_before_invoice_details_main', $invoice ); ?>
14
+        <?php do_action('getpaid_before_invoice_details_main', $invoice); ?>
15 15
 
16 16
         <div class="getpaid-invoice-details mt-3 mb-3">
17 17
             <div class="row">
18 18
 
19 19
                 <div class="col-12 col-sm-6">
20
-                    <?php do_action( 'getpaid_invoice_details_left', $invoice ); ?>
20
+                    <?php do_action('getpaid_invoice_details_left', $invoice); ?>
21 21
                 </div>
22 22
 
23 23
                 <div class="col-12 col-sm-6">
24
-                    <?php do_action( 'getpaid_invoice_details_right', $invoice ); ?>
24
+                    <?php do_action('getpaid_invoice_details_right', $invoice); ?>
25 25
                 </div>
26 26
 
27 27
             </div>
28 28
         </div>
29 29
 
30
-        <?php do_action( 'getpaid_after_invoice_details_main', $invoice ); ?>
30
+        <?php do_action('getpaid_after_invoice_details_main', $invoice); ?>
31 31
 
32 32
 <?php
Please login to merge, or discard this patch.
includes/data/zip-regexes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * @package Invoicing/data
7 7
  */
8 8
 
9
-defined( 'ABSPATH' ) || exit;
9
+defined('ABSPATH') || exit;
10 10
 
11 11
 return array(
12 12
     "AD" => "AD\d{3}",
Please login to merge, or discard this patch.
widgets/invoice-history.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -44,15 +44,15 @@
 block discarded – undo
44 44
         parent::__construct( $options );
45 45
     }
46 46
 
47
-	/**
48
-	 * The Super block output function.
49
-	 *
50
-	 * @param array $args
51
-	 * @param array $widget_args
52
-	 * @param string $content
53
-	 *
54
-	 * @return mixed|string|bool
55
-	 */
47
+    /**
48
+     * The Super block output function.
49
+     *
50
+     * @param array $args
51
+     * @param array $widget_args
52
+     * @param string $content
53
+     *
54
+     * @return mixed|string|bool
55
+     */
56 56
     public function output( $args = array(), $widget_args = array(), $content = '' ) {
57 57
         return getpaid_invoice_history();
58 58
     }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if (!defined('ABSPATH')) {
3 3
     exit;
4 4
 }
5 5
 
@@ -22,15 +22,15 @@  discard block
 block discarded – undo
22 22
             'block-keywords'=> "['invoicing','history']",
23 23
             'class_name'     => __CLASS__,
24 24
             'base_id'       => 'wpinv_history',
25
-            'name'          => __('GetPaid > Invoice History','invoicing'),
25
+            'name'          => __('GetPaid > Invoice History', 'invoicing'),
26 26
             'widget_ops'    => array(
27 27
                 'classname'   => 'wpinv-history-class bsui',
28
-                'description' => esc_html__('Displays invoice history.','invoicing'),
28
+                'description' => esc_html__('Displays invoice history.', 'invoicing'),
29 29
             ),
30 30
             'arguments'     => array(
31 31
                 'title'  => array(
32
-                    'title'       => __( 'Widget title', 'invoicing' ),
33
-                    'desc'        => __( 'Enter widget title.', 'invoicing' ),
32
+                    'title'       => __('Widget title', 'invoicing'),
33
+                    'desc'        => __('Enter widget title.', 'invoicing'),
34 34
                     'type'        => 'text',
35 35
                     'desc_tip'    => true,
36 36
                     'default'     => '',
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         );
42 42
 
43 43
 
44
-        parent::__construct( $options );
44
+        parent::__construct($options);
45 45
     }
46 46
 
47 47
 	/**
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	 *
54 54
 	 * @return mixed|string|bool
55 55
 	 */
56
-    public function output( $args = array(), $widget_args = array(), $content = '' ) {
56
+    public function output($args = array(), $widget_args = array(), $content = '') {
57 57
         return getpaid_invoice_history();
58 58
     }
59 59
 
Please login to merge, or discard this patch.
widgets/invoice-receipt.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -44,15 +44,15 @@
 block discarded – undo
44 44
         parent::__construct( $options );
45 45
     }
46 46
 
47
-	/**
48
-	 * The Super block output function.
49
-	 *
50
-	 * @param array $args
51
-	 * @param array $widget_args
52
-	 * @param string $content
53
-	 *
54
-	 * @return mixed|string|bool
55
-	 */
47
+    /**
48
+     * The Super block output function.
49
+     *
50
+     * @param array $args
51
+     * @param array $widget_args
52
+     * @param string $content
53
+     *
54
+     * @return mixed|string|bool
55
+     */
56 56
     public function output( $args = array(), $widget_args = array(), $content = '' ) {
57 57
         return wpinv_payment_receipt();
58 58
     }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if (!defined('ABSPATH')) {
3 3
     exit;
4 4
 }
5 5
 
@@ -22,15 +22,15 @@  discard block
 block discarded – undo
22 22
             'block-keywords'=> "['invoicing','receipt']",
23 23
             'class_name'     => __CLASS__,
24 24
             'base_id'       => 'wpinv_receipt',
25
-            'name'          => __('GetPaid > Invoice Receipt','invoicing'),
25
+            'name'          => __('GetPaid > Invoice Receipt', 'invoicing'),
26 26
             'widget_ops'    => array(
27 27
                 'classname'   => 'wpinv-receipt-class bsui',
28
-                'description' => esc_html__('Displays invoice receipt after checkout.','invoicing'),
28
+                'description' => esc_html__('Displays invoice receipt after checkout.', 'invoicing'),
29 29
             ),
30 30
             'arguments'     => array(
31 31
                 'title'  => array(
32
-                    'title'       => __( 'Widget title', 'invoicing' ),
33
-                    'desc'        => __( 'Enter widget title.', 'invoicing' ),
32
+                    'title'       => __('Widget title', 'invoicing'),
33
+                    'desc'        => __('Enter widget title.', 'invoicing'),
34 34
                     'type'        => 'text',
35 35
                     'desc_tip'    => true,
36 36
                     'default'     => '',
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         );
42 42
 
43 43
 
44
-        parent::__construct( $options );
44
+        parent::__construct($options);
45 45
     }
46 46
 
47 47
 	/**
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	 *
54 54
 	 * @return mixed|string|bool
55 55
 	 */
56
-    public function output( $args = array(), $widget_args = array(), $content = '' ) {
56
+    public function output($args = array(), $widget_args = array(), $content = '') {
57 57
         return wpinv_payment_receipt();
58 58
     }
59 59
 
Please login to merge, or discard this patch.
includes/data/currency-symbols.php 2 patches
Indentation   +162 added lines, -162 removed lines patch added patch discarded remove patch
@@ -11,166 +11,166 @@
 block discarded – undo
11 11
 defined( 'ABSPATH' ) || exit;
12 12
 
13 13
 return array(
14
-	'AED' => '&#x62f;.&#x625;',
15
-	'AFN' => '&#x60b;',
16
-	'ALL' => 'L',
17
-	'AMD' => 'AMD',
18
-	'ANG' => '&fnof;',
19
-	'AOA' => 'Kz',
20
-	'ARS' => '&#36;',
21
-	'AUD' => '&#36;',
22
-	'AWG' => '&fnof;',
23
-	'AZN' => 'AZN',
24
-	'BAM' => 'KM',
25
-	'BBD' => '&#36;',
26
-	'BDT' => '&#2547;',
27
-	'BGN' => '&#1083;&#1074;.',
28
-	'BHD' => '.&#x62f;.&#x628;',
29
-	'BIF' => 'Fr',
30
-	'BMD' => '&#36;',
31
-	'BND' => '&#36;',
32
-	'BOB' => 'Bs.',
33
-	'BRL' => '&#82;&#36;',
34
-	'BSD' => '&#36;',
35
-	'BTC' => '&#3647;',
36
-	'BTN' => 'Nu.',
37
-	'BWP' => 'P',
38
-	'BYN' => 'Br',
39
-	'BZD' => '&#36;',
40
-	'CAD' => '&#36;',
41
-	'CDF' => 'Fr',
42
-	'CHF' => '&#67;&#72;&#70;',
43
-	'CLP' => '&#36;',
44
-	'CNY' => '&yen;',
45
-	'COP' => '&#36;',
46
-	'CRC' => '&#x20a1;',
47
-	'CUC' => '&#36;',
48
-	'CUP' => '&#36;',
49
-	'CVE' => '&#36;',
50
-	'CZK' => '&#75;&#269;',
51
-	'DJF' => 'Fr',
52
-	'DKK' => 'DKK',
53
-	'DOP' => 'RD&#36;',
54
-	'DZD' => '&#x62f;.&#x62c;',
55
-	'EGP' => 'EGP',
56
-	'ERN' => 'Nfk',
57
-	'ETB' => 'Br',
58
-	'EUR' => '&euro;',
59
-	'FJD' => '&#36;',
60
-	'FKP' => '&pound;',
61
-	'GBP' => '&pound;',
62
-	'GEL' => '&#x10da;',
63
-	'GGP' => '&pound;',
64
-	'GHS' => '&#x20b5;',
65
-	'GIP' => '&pound;',
66
-	'GMD' => 'D',
67
-	'GNF' => 'Fr',
68
-	'GTQ' => 'Q',
69
-	'GYD' => '&#36;',
70
-	'HKD' => '&#36;',
71
-	'HNL' => 'L',
72
-	'HRK' => 'Kn',
73
-	'HTG' => 'G',
74
-	'HUF' => '&#70;&#116;',
75
-	'IDR' => 'Rp',
76
-	'ILS' => '&#8362;',
77
-	'IMP' => '&pound;',
78
-	'INR' => '&#8377;',
79
-	'IQD' => '&#x639;.&#x62f;',
80
-	'IRR' => '&#xfdfc;',
81
-	'IRT' => '&#x062A;&#x0648;&#x0645;&#x0627;&#x0646;',
82
-	'ISK' => 'kr.',
83
-	'JEP' => '&pound;',
84
-	'JMD' => '&#36;',
85
-	'JOD' => '&#x62f;.&#x627;',
86
-	'JPY' => '&yen;',
87
-	'KES' => 'KSh',
88
-	'KGS' => '&#x441;&#x43e;&#x43c;',
89
-	'KHR' => '&#x17db;',
90
-	'KMF' => 'Fr',
91
-	'KPW' => '&#x20a9;',
92
-	'KRW' => '&#8361;',
93
-	'KWD' => '&#x62f;.&#x643;',
94
-	'KYD' => '&#36;',
95
-	'KZT' => 'KZT',
96
-	'LAK' => '&#8365;',
97
-	'LBP' => '&#x644;.&#x644;',
98
-	'LKR' => '&#xdbb;&#xdd4;',
99
-	'LRD' => '&#36;',
100
-	'LSL' => 'L',
101
-	'LYD' => '&#x644;.&#x62f;',
102
-	'MAD' => '&#x62f;.&#x645;.',
103
-	'MDL' => 'MDL',
104
-	'MGA' => 'Ar',
105
-	'MKD' => '&#x434;&#x435;&#x43d;',
106
-	'MMK' => 'Ks',
107
-	'MNT' => '&#x20ae;',
108
-	'MOP' => 'P',
109
-	'MRO' => 'UM',
110
-	'MUR' => '&#x20a8;',
111
-	'MVR' => '.&#x783;',
112
-	'MWK' => 'MK',
113
-	'MXN' => '&#36;',
114
-	'MYR' => '&#82;&#77;',
115
-	'MZN' => 'MT',
116
-	'NAD' => '&#36;',
117
-	'NGN' => '&#8358;',
118
-	'NIO' => 'C&#36;',
119
-	'NOK' => '&#107;&#114;',
120
-	'NPR' => '&#8360;',
121
-	'NZD' => '&#36;',
122
-	'OMR' => '&#x631;.&#x639;.',
123
-	'PAB' => 'B/.',
124
-	'PEN' => 'S/.',
125
-	'PGK' => 'K',
126
-	'PHP' => '&#8369;',
127
-	'PKR' => '&#8360;',
128
-	'PLN' => '&#122;&#322;',
129
-	'PRB' => '&#x440;.',
130
-	'PYG' => '&#8370;',
131
-	'QAR' => '&#x631;.&#x642;',
132
-	'RMB' => '&yen;',
133
-	'RON' => 'lei',
134
-	'RSD' => '&#x434;&#x438;&#x43d;.',
135
-	'RUB' => '&#8381;',
136
-	'RWF' => 'Fr',
137
-	'SAR' => '&#x631;.&#x633;',
138
-	'SBD' => '&#36;',
139
-	'SCR' => '&#x20a8;',
140
-	'SDG' => '&#x62c;.&#x633;.',
141
-	'SEK' => '&#107;&#114;',
142
-	'SGD' => '&#36;',
143
-	'SHP' => '&pound;',
144
-	'SLL' => 'Le',
145
-	'SOS' => 'Sh',
146
-	'SRD' => '&#36;',
147
-	'SSP' => '&pound;',
148
-	'STD' => 'Db',
149
-	'SYP' => '&#x644;.&#x633;',
150
-	'SZL' => 'L',
151
-	'THB' => '&#3647;',
152
-	'TJS' => '&#x405;&#x41c;',
153
-	'TMT' => 'm',
154
-	'TND' => '&#x62f;.&#x62a;',
155
-	'TOP' => 'T&#36;',
156
-	'TRY' => '&#8378;',
157
-	'TTD' => '&#36;',
158
-	'TWD' => '&#78;&#84;&#36;',
159
-	'TZS' => 'Sh',
160
-	'UAH' => '&#8372;',
161
-	'UGX' => 'UGX',
162
-	'USD' => '&#36;',
163
-	'UYU' => '&#36;',
164
-	'UZS' => 'UZS',
165
-	'VEF' => 'Bs.',
166
-	'VND' => '&#8363;',
167
-	'VUV' => 'Vt',
168
-	'WST' => 'T',
169
-	'XAF' => 'Fr',
170
-	'XCD' => '&#36;',
171
-	'XOF' => 'Fr',
172
-	'XPF' => 'Fr',
173
-	'YER' => '&#xfdfc;',
174
-	'ZAR' => '&#82;',
175
-	'ZMW' => 'ZK',
14
+    'AED' => '&#x62f;.&#x625;',
15
+    'AFN' => '&#x60b;',
16
+    'ALL' => 'L',
17
+    'AMD' => 'AMD',
18
+    'ANG' => '&fnof;',
19
+    'AOA' => 'Kz',
20
+    'ARS' => '&#36;',
21
+    'AUD' => '&#36;',
22
+    'AWG' => '&fnof;',
23
+    'AZN' => 'AZN',
24
+    'BAM' => 'KM',
25
+    'BBD' => '&#36;',
26
+    'BDT' => '&#2547;',
27
+    'BGN' => '&#1083;&#1074;.',
28
+    'BHD' => '.&#x62f;.&#x628;',
29
+    'BIF' => 'Fr',
30
+    'BMD' => '&#36;',
31
+    'BND' => '&#36;',
32
+    'BOB' => 'Bs.',
33
+    'BRL' => '&#82;&#36;',
34
+    'BSD' => '&#36;',
35
+    'BTC' => '&#3647;',
36
+    'BTN' => 'Nu.',
37
+    'BWP' => 'P',
38
+    'BYN' => 'Br',
39
+    'BZD' => '&#36;',
40
+    'CAD' => '&#36;',
41
+    'CDF' => 'Fr',
42
+    'CHF' => '&#67;&#72;&#70;',
43
+    'CLP' => '&#36;',
44
+    'CNY' => '&yen;',
45
+    'COP' => '&#36;',
46
+    'CRC' => '&#x20a1;',
47
+    'CUC' => '&#36;',
48
+    'CUP' => '&#36;',
49
+    'CVE' => '&#36;',
50
+    'CZK' => '&#75;&#269;',
51
+    'DJF' => 'Fr',
52
+    'DKK' => 'DKK',
53
+    'DOP' => 'RD&#36;',
54
+    'DZD' => '&#x62f;.&#x62c;',
55
+    'EGP' => 'EGP',
56
+    'ERN' => 'Nfk',
57
+    'ETB' => 'Br',
58
+    'EUR' => '&euro;',
59
+    'FJD' => '&#36;',
60
+    'FKP' => '&pound;',
61
+    'GBP' => '&pound;',
62
+    'GEL' => '&#x10da;',
63
+    'GGP' => '&pound;',
64
+    'GHS' => '&#x20b5;',
65
+    'GIP' => '&pound;',
66
+    'GMD' => 'D',
67
+    'GNF' => 'Fr',
68
+    'GTQ' => 'Q',
69
+    'GYD' => '&#36;',
70
+    'HKD' => '&#36;',
71
+    'HNL' => 'L',
72
+    'HRK' => 'Kn',
73
+    'HTG' => 'G',
74
+    'HUF' => '&#70;&#116;',
75
+    'IDR' => 'Rp',
76
+    'ILS' => '&#8362;',
77
+    'IMP' => '&pound;',
78
+    'INR' => '&#8377;',
79
+    'IQD' => '&#x639;.&#x62f;',
80
+    'IRR' => '&#xfdfc;',
81
+    'IRT' => '&#x062A;&#x0648;&#x0645;&#x0627;&#x0646;',
82
+    'ISK' => 'kr.',
83
+    'JEP' => '&pound;',
84
+    'JMD' => '&#36;',
85
+    'JOD' => '&#x62f;.&#x627;',
86
+    'JPY' => '&yen;',
87
+    'KES' => 'KSh',
88
+    'KGS' => '&#x441;&#x43e;&#x43c;',
89
+    'KHR' => '&#x17db;',
90
+    'KMF' => 'Fr',
91
+    'KPW' => '&#x20a9;',
92
+    'KRW' => '&#8361;',
93
+    'KWD' => '&#x62f;.&#x643;',
94
+    'KYD' => '&#36;',
95
+    'KZT' => 'KZT',
96
+    'LAK' => '&#8365;',
97
+    'LBP' => '&#x644;.&#x644;',
98
+    'LKR' => '&#xdbb;&#xdd4;',
99
+    'LRD' => '&#36;',
100
+    'LSL' => 'L',
101
+    'LYD' => '&#x644;.&#x62f;',
102
+    'MAD' => '&#x62f;.&#x645;.',
103
+    'MDL' => 'MDL',
104
+    'MGA' => 'Ar',
105
+    'MKD' => '&#x434;&#x435;&#x43d;',
106
+    'MMK' => 'Ks',
107
+    'MNT' => '&#x20ae;',
108
+    'MOP' => 'P',
109
+    'MRO' => 'UM',
110
+    'MUR' => '&#x20a8;',
111
+    'MVR' => '.&#x783;',
112
+    'MWK' => 'MK',
113
+    'MXN' => '&#36;',
114
+    'MYR' => '&#82;&#77;',
115
+    'MZN' => 'MT',
116
+    'NAD' => '&#36;',
117
+    'NGN' => '&#8358;',
118
+    'NIO' => 'C&#36;',
119
+    'NOK' => '&#107;&#114;',
120
+    'NPR' => '&#8360;',
121
+    'NZD' => '&#36;',
122
+    'OMR' => '&#x631;.&#x639;.',
123
+    'PAB' => 'B/.',
124
+    'PEN' => 'S/.',
125
+    'PGK' => 'K',
126
+    'PHP' => '&#8369;',
127
+    'PKR' => '&#8360;',
128
+    'PLN' => '&#122;&#322;',
129
+    'PRB' => '&#x440;.',
130
+    'PYG' => '&#8370;',
131
+    'QAR' => '&#x631;.&#x642;',
132
+    'RMB' => '&yen;',
133
+    'RON' => 'lei',
134
+    'RSD' => '&#x434;&#x438;&#x43d;.',
135
+    'RUB' => '&#8381;',
136
+    'RWF' => 'Fr',
137
+    'SAR' => '&#x631;.&#x633;',
138
+    'SBD' => '&#36;',
139
+    'SCR' => '&#x20a8;',
140
+    'SDG' => '&#x62c;.&#x633;.',
141
+    'SEK' => '&#107;&#114;',
142
+    'SGD' => '&#36;',
143
+    'SHP' => '&pound;',
144
+    'SLL' => 'Le',
145
+    'SOS' => 'Sh',
146
+    'SRD' => '&#36;',
147
+    'SSP' => '&pound;',
148
+    'STD' => 'Db',
149
+    'SYP' => '&#x644;.&#x633;',
150
+    'SZL' => 'L',
151
+    'THB' => '&#3647;',
152
+    'TJS' => '&#x405;&#x41c;',
153
+    'TMT' => 'm',
154
+    'TND' => '&#x62f;.&#x62a;',
155
+    'TOP' => 'T&#36;',
156
+    'TRY' => '&#8378;',
157
+    'TTD' => '&#36;',
158
+    'TWD' => '&#78;&#84;&#36;',
159
+    'TZS' => 'Sh',
160
+    'UAH' => '&#8372;',
161
+    'UGX' => 'UGX',
162
+    'USD' => '&#36;',
163
+    'UYU' => '&#36;',
164
+    'UZS' => 'UZS',
165
+    'VEF' => 'Bs.',
166
+    'VND' => '&#8363;',
167
+    'VUV' => 'Vt',
168
+    'WST' => 'T',
169
+    'XAF' => 'Fr',
170
+    'XCD' => '&#36;',
171
+    'XOF' => 'Fr',
172
+    'XPF' => 'Fr',
173
+    'YER' => '&#xfdfc;',
174
+    'ZAR' => '&#82;',
175
+    'ZMW' => 'ZK',
176 176
 );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * @version 1.0.19
9 9
  */
10 10
 
11
-defined( 'ABSPATH' ) || exit;
11
+defined('ABSPATH') || exit;
12 12
 
13 13
 return array(
14 14
 	'AED' => '&#x62f;.&#x625;',
Please login to merge, or discard this patch.