@@ -22,11 +22,14 @@ |
||
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( 'controller/jobs', '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( 'controller/jobs', 'The value of your voucher is %1$s', 'The value of your vouchers are %1$s', count( (array) $this->voucher ) ), $value ) ) ) ?> |
32 | 35 |
@@ -109,7 +109,8 @@ discard block |
||
109 | 109 | ) ) ) ) |
110 | 110 | ?> |
111 | 111 | <?php endforeach ?> |
112 | -<?php else : ?> |
|
112 | +<?php else { |
|
113 | + : ?> |
|
113 | 114 | <?= $this->translate( 'controller/jobs', 'like billing address' ) ?> |
114 | 115 | <?php endif ?> |
115 | 116 | |
@@ -124,6 +125,7 @@ discard block |
||
124 | 125 | <?php foreach( $service->getAttributeItems() as $attribute ) |
125 | 126 | { |
126 | 127 | $name = ( $attribute->getName() != '' ? $attribute->getName() : $this->translate( 'controller/jobs', $attribute->getCode() ) ); |
128 | +} |
|
127 | 129 | |
128 | 130 | switch( $attribute->getValue() ) |
129 | 131 | { |
@@ -84,8 +84,7 @@ discard block |
||
84 | 84 | foreach( $manager->search( $search ) as $item ) { |
85 | 85 | $this->listTypes[$item->getCode()] = $item->getCode(); |
86 | 86 | } |
87 | - } |
|
88 | - else |
|
87 | + } else |
|
89 | 88 | { |
90 | 89 | $this->listTypes = array_flip( $this->listTypes ); |
91 | 90 | } |
@@ -153,8 +152,7 @@ discard block |
||
153 | 152 | $listItem = $listMap[$url][$type][$langId][$listtype]; |
154 | 153 | $refItem = $listItem->getRefItem(); |
155 | 154 | unset( $listItems[$listItem->getId()] ); |
156 | - } |
|
157 | - else |
|
155 | + } else |
|
158 | 156 | { |
159 | 157 | $listItem = $manager->createListItem()->setType( $listtype ); |
160 | 158 | $refItem = $refManager->create()->setType( $type ); |
@@ -81,8 +81,7 @@ |
||
81 | 81 | foreach( $manager->search( $search ) as $item ) { |
82 | 82 | $this->listTypes[$item->getCode()] = $item->getCode(); |
83 | 83 | } |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | $this->listTypes = array_flip( $this->listTypes ); |
88 | 87 | } |
@@ -81,8 +81,7 @@ |
||
81 | 81 | foreach( $manager->search( $search ) as $item ) { |
82 | 82 | $this->listTypes[$item->getCode()] = $item->getCode(); |
83 | 83 | } |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | $this->listTypes = array_flip( $this->listTypes ); |
88 | 87 | } |
@@ -81,8 +81,7 @@ |
||
81 | 81 | foreach( $manager->search( $search ) as $item ) { |
82 | 82 | $this->listTypes[$item->getCode()] = $item->getCode(); |
83 | 83 | } |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | $this->listTypes = array_flip( $this->listTypes ); |
88 | 87 | } |
@@ -65,8 +65,7 @@ |
||
65 | 65 | { |
66 | 66 | $item = $propMap[$value][$type]; |
67 | 67 | $items->remove( $item->getId() ); |
68 | - } |
|
69 | - else |
|
68 | + } else |
|
70 | 69 | { |
71 | 70 | $item = $manager->create()->setType( $type ); |
72 | 71 | } |
@@ -82,8 +82,7 @@ discard block |
||
82 | 82 | foreach( $manager->search( $search ) as $item ) { |
83 | 83 | $this->listTypes[$item->getCode()] = $item->getCode(); |
84 | 84 | } |
85 | - } |
|
86 | - else |
|
85 | + } else |
|
87 | 86 | { |
88 | 87 | $this->listTypes = array_flip( $this->listTypes ); |
89 | 88 | } |
@@ -147,8 +146,7 @@ discard block |
||
147 | 146 | { |
148 | 147 | $listItem = $listMap[$code][$attrType][$listtype]; |
149 | 148 | unset( $listItems[$listItem->getId()] ); |
150 | - } |
|
151 | - else |
|
149 | + } else |
|
152 | 150 | { |
153 | 151 | $listItem = $manager->createListItem()->setType( $listtype ); |
154 | 152 | } |
@@ -81,8 +81,7 @@ discard block |
||
81 | 81 | foreach( $manager->search( $search ) as $item ) { |
82 | 82 | $this->listTypes[$item->getCode()] = $item->getCode(); |
83 | 83 | } |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | $this->listTypes = array_flip( $this->listTypes ); |
88 | 87 | } |
@@ -142,8 +141,7 @@ discard block |
||
142 | 141 | $listItem = $listMap[$content][$language][$type][$listtype]; |
143 | 142 | $refItem = $listItem->getRefItem(); |
144 | 143 | unset( $listItems[$listItem->getId()] ); |
145 | - } |
|
146 | - else |
|
144 | + } else |
|
147 | 145 | { |
148 | 146 | $listItem = $manager->createListItem()->setType( $listtype ); |
149 | 147 | $refItem = $refManager->create()->setType( $type ); |