Passed
Push — master ( 68cc04...6c1ea3 )
by Aimeos
03:30
created
controller/jobs/templates/order/email/voucher/text.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,11 +22,14 @@
 block discarded – undo
22 22
 <?php foreach( $this->voucher as $code ) : ?>
23 23
 - <?= $code ?>
24 24
 <?php endforeach ?>
25
-<?php else : ?>
25
+<?php else {
26
+	: ?>
26 27
 <?= wordwrap( strip_tags( $this->translate( 'client', 'Your voucher: ' ) . $this->voucher ) ) ?>
27 28
 <?php endif ?>
28 29
 
29
-<?php $price = $this->orderProductItem->getPrice(); $priceCurrency = $this->translate( 'currency', $price->getCurrencyId() ) ?>
30
+<?php $price = $this->orderProductItem->getPrice();
31
+}
32
+$priceCurrency = $this->translate( 'currency', $price->getCurrencyId() ) ?>
30 33
 <?php $value = sprintf( $priceFormat, $this->number( $price->getValue() + $price->getRebate(), $price->getPrecision() ), $priceCurrency ) ?>
31 34
 <?= wordwrap( strip_tags( sprintf( $this->translate( 'client', 'The value of your voucher is %1$s', 'The value of your vouchers are %1$s', count( (array) $this->voucher ) ), $value ) ) ) ?>
32 35
 
Please login to merge, or discard this patch.