Passed
Push — master ( 1ebec0...de57a2 )
by Aimeos
02:48
created
client/html/src/Client/Html/Catalog/Filter/Attribute/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -316,13 +316,11 @@
 block discarded – undo
316 316
 			{
317 317
 				$item = $item->set( 'checked', true );
318 318
 				unset( $params[$key] );
319
-			}
320
-			elseif( ( $key = array_search( $id, $oneIds ) ) !== null )
319
+			} elseif( ( $key = array_search( $id, $oneIds ) ) !== null )
321 320
 			{
322 321
 				$item = $item->set( 'checked', true );
323 322
 				unset( $params[$key] );
324
-			}
325
-			elseif( ( $key = array_search( $id, $optIds ) ) !== null )
323
+			} elseif( ( $key = array_search( $id, $optIds ) ) !== null )
326 324
 			{
327 325
 				$item = $item->set( 'checked', true );
328 326
 				unset( $params[$key] );
Please login to merge, or discard this patch.
client/html/templates/catalog/detail/seen-partial-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,12 @@
 block discarded – undo
24 24
 
25 25
 		<?php if( ( $mediaItem = $productItem->getRefItems( 'media', 'default', 'default' )->first() ) !== null ) : ?>
26 26
 			<div class="media-item" style="background-image: url('<?= $this->content( $mediaItem->getPreview() ); ?>')"></div>
27
-		<?php else : ?>
27
+		<?php else {
28
+	: ?>
28 29
 			<div class="media-item"></div>
29
-		<?php endif; ?>
30
+		<?php endif;
31
+}
32
+?>
30 33
 
31 34
 		<h3 class="name"><?= $enc->html( $productItem->getName(), $enc::TRUST ); ?></h3>
32 35
 
Please login to merge, or discard this patch.
client/html/templates/common/partials/attribute-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,9 +123,12 @@
 block discarded – undo
123 123
 
124 124
 					</ul>
125 125
 
126
-				<?php else : ?>
126
+				<?php else {
127
+	: ?>
127 128
 
128
-					<input type="hidden" value="1" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrconfid', 'qty', ''] ) ); ?>" />
129
+					<input type="hidden" value="1" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrconfid', 'qty', ''] ) );
130
+}
131
+?>" />
129 132
 					<select class="form-control select-list" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrconfid', 'id', ''] ) ); ?>">
130 133
 
131 134
 						<?php if( $this->config( 'client/html/catalog/attribute/preselect/' . $code, false ) === false ) : ?>
Please login to merge, or discard this patch.
client/html/templates/common/partials/selection-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,10 +150,13 @@
 block discarded – undo
150 150
 
151 151
 					</ul>
152 152
 
153
-				<?php else : ?>
153
+				<?php else {
154
+	: ?>
154 155
 
155 156
 					<select class="form-control select-list"
156
-						name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrvarid', $code] ) ); ?>"
157
+						name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrvarid', $code] ) );
158
+}
159
+?>"
157 160
 						data-index="<?= $index++; ?>" data-type="<?= $enc->attr( $code ); ?>" >
158 161
 
159 162
 						<?php if( !$this->config( 'client/html/catalog/selection/preselect/' . $code, false ) ) : ?>
Please login to merge, or discard this patch.