Passed
Branch master (d032f7)
by Aimeos
05:30
created
admin/jqadm/templates/catalog/item-media-standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,9 +121,12 @@  discard block
 block discarded – undo
121 121
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional images like icons' ) ); ?>
122 122
 							</div>
123 123
 						</div>
124
-					<?php else : ?>
124
+					<?php else {
125
+	: ?>
125 126
 						<input class="item-type" type="hidden"
126
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'media.type' ) ) ); ?>'.replace( 'idx', idx )"
127
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'media.type' ) ) );
128
+}
129
+?>'.replace( 'idx', idx )"
127 130
 							value="<?= $enc->attr( key( $mediaTypes ) ); ?>" />
128 131
 					<?php endif; ?>
129 132
 
@@ -201,9 +204,12 @@  discard block
 block discarded – undo
201 204
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
202 205
 							</div>
203 206
 						</div>
204
-					<?php else : ?>
207
+					<?php else {
208
+	: ?>
205 209
 						<input class="listitem-type" type="hidden"
206
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'catalog.lists.type' ) ) ); ?>'.replace( 'idx', idx )"
210
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'catalog.lists.type' ) ) );
211
+}
212
+?>'.replace( 'idx', idx )"
207 213
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
208 214
 							v-model="items[idx]['catalog.lists.type']" />
209 215
 					<?php endif; ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/attribute/item-media-standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,9 +121,12 @@  discard block
 block discarded – undo
121 121
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional images like icons' ) ); ?>
122 122
 							</div>
123 123
 						</div>
124
-					<?php else : ?>
124
+					<?php else {
125
+	: ?>
125 126
 						<input class="item-type" type="hidden"
126
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'media.type' ) ) ); ?>'.replace( 'idx', idx )"
127
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'media.type' ) ) );
128
+}
129
+?>'.replace( 'idx', idx )"
127 130
 							value="<?= $enc->attr( key( $mediaTypes ) ); ?>" />
128 131
 					<?php endif; ?>
129 132
 
@@ -201,9 +204,12 @@  discard block
 block discarded – undo
201 204
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
202 205
 							</div>
203 206
 						</div>
204
-					<?php else : ?>
207
+					<?php else {
208
+	: ?>
205 209
 						<input class="listitem-type" type="hidden"
206
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace( 'idx', idx )"
210
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'attribute.lists.type' ) ) );
211
+}
212
+?>'.replace( 'idx', idx )"
207 213
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
208 214
 							v-model="items[idx]['attribute.lists.type']" />
209 215
 					<?php endif; ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-media-standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,9 +121,12 @@  discard block
 block discarded – undo
121 121
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional images like icons' ) ); ?>
122 122
 							</div>
123 123
 						</div>
124
-					<?php else : ?>
124
+					<?php else {
125
+	: ?>
125 126
 						<input class="item-type" type="hidden"
126
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'media.type' ) ) ); ?>'.replace( 'idx', idx )"
127
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'media.type' ) ) );
128
+}
129
+?>'.replace( 'idx', idx )"
127 130
 							value="<?= $enc->attr( key( $mediaTypes ) ); ?>" />
128 131
 					<?php endif; ?>
129 132
 
@@ -201,9 +204,12 @@  discard block
 block discarded – undo
201 204
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
202 205
 							</div>
203 206
 						</div>
204
-					<?php else : ?>
207
+					<?php else {
208
+	: ?>
205 209
 						<input class="listitem-type" type="hidden"
206
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'product.lists.type' ) ) ); ?>'.replace( 'idx', idx )"
210
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'product.lists.type' ) ) );
211
+}
212
+?>'.replace( 'idx', idx )"
207 213
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
208 214
 							v-model="items[idx]['product.lists.type']" />
209 215
 					<?php endif; ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/service/item-media-standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,9 +121,12 @@  discard block
 block discarded – undo
121 121
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional images like icons' ) ); ?>
122 122
 							</div>
123 123
 						</div>
124
-					<?php else : ?>
124
+					<?php else {
125
+	: ?>
125 126
 						<input class="item-type" type="hidden"
126
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'media.type' ) ) ); ?>'.replace( 'idx', idx )"
127
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'media.type' ) ) );
128
+}
129
+?>'.replace( 'idx', idx )"
127 130
 							value="<?= $enc->attr( key( $mediaTypes ) ); ?>" />
128 131
 					<?php endif; ?>
129 132
 
@@ -201,9 +204,12 @@  discard block
 block discarded – undo
201 204
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
202 205
 							</div>
203 206
 						</div>
204
-					<?php else : ?>
207
+					<?php else {
208
+	: ?>
205 209
 						<input class="listitem-type" type="hidden"
206
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'service.lists.type' ) ) ); ?>'.replace( 'idx', idx )"
210
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'service.lists.type' ) ) );
211
+}
212
+?>'.replace( 'idx', idx )"
207 213
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
208 214
 							v-model="items[idx]['service.lists.type']" />
209 215
 					<?php endif; ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/item-standard.php 1 patch
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,8 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-$selected = function( $key, $code ) {
8
+$selected = function( $key, $code )
9
+{
9 10
 	return ( $key == $code ? 'selected="selected"' : '' );
10 11
 };
11 12
 
@@ -34,8 +35,11 @@  discard block
 block discarded – undo
34 35
 			<?= $enc->html( $this->get( 'itemData/locale.id' ) ); ?> -
35 36
 			<?php if( $this->get( 'itemData/locale.currencyid' ) ) : ?>
36 37
 				<?= $enc->html( $this->get( 'itemData/locale.languageid' ) . '/' . $this->get( 'itemData/locale.currencyid' ) ); ?>
37
-			<?php else : ?>
38
-				<?= $enc->html( $this->translate( 'admin', 'New' ) ); ?>
38
+			<?php else {
39
+	: ?>
40
+				<?= $enc->html( $this->translate( 'admin', 'New' ) );
41
+}
42
+?>
39 43
 			<?php endif; ?>
40 44
 			<span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/locale.siteid' ) ) ); ?>)</span>
41 45
 		</span>
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/currency/item-standard.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,8 @@
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-$selected = function( $key, $code ) {
8
+$selected = function( $key, $code )
9
+{
9 10
 	return ( $key == $code ? 'selected="selected"' : '' );
10 11
 };
11 12
 
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/site/item-standard.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,8 @@
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-$selected = function( $key, $code ) {
8
+$selected = function( $key, $code )
9
+{
9 10
 	return ( $key == $code ? 'selected="selected"' : '' );
10 11
 };
11 12
 
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/language/item-standard.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,8 @@
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-$selected = function( $key, $code ) {
8
+$selected = function( $key, $code )
9
+{
9 10
 	return ( $key == $code ? 'selected="selected"' : '' );
10 11
 };
11 12
 
Please login to merge, or discard this patch.
admin/jqadm/templates/order/item-standard.php 1 patch
Braces   +12 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,7 +5,8 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-$selected = function( $key, $code ) {
8
+$selected = function( $key, $code )
9
+{
9 10
 	return ( $key == $code ? 'selected="selected"' : '' );
10 11
 };
11 12
 
@@ -334,8 +335,11 @@  discard block
 block discarded – undo
334 335
 										<div class="col-sm-8"><span class="item-coupon"><?= $enc->attr( $code ); ?></span></div>
335 336
 									</div>
336 337
 								<?php endforeach; ?>
337
-							<?php else : ?>
338
-								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); ?>
338
+							<?php else {
339
+	: ?>
340
+								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) );
341
+}
342
+?>
339 343
 							<?php endif; ?>
340 344
 						</div>
341 345
 
@@ -758,8 +762,11 @@  discard block
 block discarded – undo
758 762
 								<div class="col-6 name">
759 763
 									<?php if( $basket->getPrice()->getTaxFlag() ) : ?>
760 764
 										<?= $enc->html( $this->translate( 'admin', 'Incl. tax' ) ); ?>
761
-									<?php else : ?>
762
-										<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) ); ?>
765
+									<?php else {
766
+	: ?>
767
+										<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) );
768
+}
769
+?>
763 770
 									<?php endif; ?>
764 771
 								</div>
765 772
 								<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getTaxValue() ), $currency ) ); ?></div>
Please login to merge, or discard this patch.