@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | |
236 | 236 | $tip = array( |
237 | 237 | sprintf( |
238 | - /* translators: %s: unit price excluding tax */ |
|
238 | + /* translators: %s: unit price excluding tax */ |
|
239 | 239 | __( 'Exclusive tax: %s', 'pronamic_ideal' ), |
240 | 240 | $line->get_unit_price()->get_excluding_tax() |
241 | 241 | ), |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | |
244 | 244 | if ( $line->get_unit_price()->get_tax_amount() > 0 ) { |
245 | 245 | $tip[] = sprintf( |
246 | - /* translators: %s: unit price including tax */ |
|
246 | + /* translators: %s: unit price including tax */ |
|
247 | 247 | __( 'Inclusive tax: %s', 'pronamic_ideal' ), |
248 | 248 | $line->get_unit_price()->get_including_tax() |
249 | 249 | ); |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | |
273 | 273 | $tip = array( |
274 | 274 | sprintf( |
275 | - /* translators: %s: total amount excluding tax */ |
|
275 | + /* translators: %s: total amount excluding tax */ |
|
276 | 276 | __( 'Exclusive tax: %s', 'pronamic_ideal' ), |
277 | 277 | $line->get_total_amount()->get_excluding_tax() |
278 | 278 | ), |
@@ -280,27 +280,27 @@ discard block |
||
280 | 280 | |
281 | 281 | if ( $line->get_total_amount()->get_tax_amount() > 0 ) { |
282 | 282 | $tip[] = sprintf( |
283 | - /* translators: %s: total amount including tax */ |
|
283 | + /* translators: %s: total amount including tax */ |
|
284 | 284 | __( 'Inclusive tax: %s', 'pronamic_ideal' ), |
285 | 285 | $line->get_total_amount()->get_including_tax() |
286 | 286 | ); |
287 | 287 | } |
288 | 288 | |
289 | - printf( |
|
290 | - '<span class="pronamic-pay-tip" title="%s">%s</span>', |
|
291 | - esc_attr( implode( '<br />', $tip ) ), |
|
292 | - esc_html( $line->get_total_amount()->get_excluding_tax() ) |
|
293 | - ); |
|
289 | + printf( |
|
290 | + '<span class="pronamic-pay-tip" title="%s">%s</span>', |
|
291 | + esc_attr( implode( '<br />', $tip ) ), |
|
292 | + esc_html( $line->get_total_amount()->get_excluding_tax() ) |
|
293 | + ); |
|
294 | 294 | |
295 | 295 | ?> |
296 | 296 | </td> |
297 | 297 | <td> |
298 | 298 | <?php |
299 | 299 | |
300 | - $tax_amount = new Money( |
|
301 | - $line->get_total_amount()->get_tax_amount(), |
|
302 | - $line->get_total_amount()->get_currency()->get_alphabetic_code() |
|
303 | - ); |
|
300 | + $tax_amount = new Money( |
|
301 | + $line->get_total_amount()->get_tax_amount(), |
|
302 | + $line->get_total_amount()->get_currency()->get_alphabetic_code() |
|
303 | + ); |
|
304 | 304 | |
305 | 305 | printf( |
306 | 306 | '<span class="pronamic-pay-tip" title="%s">%s</span>', |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | <?php |
111 | 111 | |
112 | 112 | $values = array_map( |
113 | - function ( $line ) { |
|
113 | + function( $line ) { |
|
114 | 114 | return $line->get_total_amount()->get_excluding_tax()->get_amount(); |
115 | 115 | }, |
116 | 116 | $lines->get_array() |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | if ( $payment->get_total_amount()->get_tax_amount() > 0 ) { |
130 | 130 | $values = array_map( |
131 | - function ( $line ) { |
|
131 | + function( $line ) { |
|
132 | 132 | return $line->get_total_amount()->get_including_tax()->get_amount(); |
133 | 133 | }, |
134 | 134 | $lines->get_array() |