Completed
Push — master ( d8b85b...a974de )
by Aimeos
02:51
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
@@ -319,13 +319,11 @@
 block discarded – undo
319 319
 			{
320 320
 				$item = $item->set( 'checked', true );
321 321
 				unset( $attrparams['f_attrid'][$key] );
322
-			}
323
-			elseif( ( $key = array_search( $id, $oneIds ) ) !== false )
322
+			} elseif( ( $key = array_search( $id, $oneIds ) ) !== false )
324 323
 			{
325 324
 				$item = $item->set( 'checked', true );
326 325
 				unset( $attrparams['f_oneid'][$key] );
327
-			}
328
-			elseif( ( $key = array_search( $id, $optIds ) ) !== false )
326
+			} elseif( ( $key = array_search( $id, $optIds ) ) !== false )
329 327
 			{
330 328
 				$item = $item->set( 'checked', true );
331 329
 				unset( $attrparams['f_optid'][$key] );
Please login to merge, or discard this patch.
client/html/src/Client/Html/Catalog/Home/Standard.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -166,8 +166,7 @@  discard block
 block discarded – undo
166 166
 			}
167 167
 
168 168
 			$html = $view->render( $config->get( $tplconf, $default ) );
169
-		}
170
-		else
169
+		} else
171 170
 		{
172 171
 			$html = $this->modifyBody( $html, $uid );
173 172
 		}
@@ -236,8 +235,7 @@  discard block
 block discarded – undo
236 235
 			{
237 236
 				$this->logException( $e );
238 237
 			}
239
-		}
240
-		else
238
+		} else
241 239
 		{
242 240
 			$html = $this->modifyHeader( $html, $uid );
243 241
 		}
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -443,7 +443,7 @@
 block discarded – undo
443 443
 		}
444 444
 
445 445
 		$tree = \Aimeos\Controller\Frontend::create( $context, 'catalog' )->uses( $domains )
446
-			->getTree( \Aimeos\Controller\Frontend\Catalog\Iface::LIST );
446
+			->getTree( \Aimeos\Controller\Frontend\Catalog\Iface::list );
447 447
 
448 448
 
449 449
 		$articles = map();
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 id="select-<?= $enc->attr( $code ) ?>" 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.
client/html/templates/common/partials/attribute-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,9 +122,12 @@
 block discarded – undo
122 122
 
123 123
 					</ul>
124 124
 
125
-				<?php else : ?>
125
+				<?php else {
126
+	: ?>
126 127
 
127
-					<input type="hidden" value="1" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrconfid', 'qty', ''] ) ); ?>" />
128
+					<input type="hidden" value="1" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrconfid', 'qty', ''] ) );
129
+}
130
+?>" />
128 131
 					<select id="select-<?= $enc->attr( $code ) ?>" class="form-control select-list"
129 132
 						name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrconfid', 'id', ''] ) ); ?>">
130 133
 
Please login to merge, or discard this patch.
client/html/templates/catalog/lists/header-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,11 @@
 block discarded – undo
50 50
 		<title><?= $enc->html( sprintf( $this->translate( 'client', 'Result for "%1$s"' ), strip_tags( $search ) ) ); ?></title>
51 51
 		<meta name="keywords" content="<?= $enc->attr( strip_tags( $search ) ); ?>" />
52 52
 		<meta name="description" content="<?= $enc->attr( strip_tags( $search ) ); ?>" />
53
-	<?php else : ?>
54
-		<title><?= $enc->html( $this->translate( 'client', 'Our products' ) ); ?></title>
53
+	<?php else {
54
+	: ?>
55
+		<title><?= $enc->html( $this->translate( 'client', 'Our products' ) );
56
+}
57
+?></title>
55 58
 		<meta name="keywords" content="<?= $enc->attr( $this->translate( 'client', 'Our products' ) ); ?>" />
56 59
 		<meta name="description" content="<?= $enc->attr( $this->translate( 'client', 'Our products' ) ); ?>" />
57 60
 	<?php endif; ?>
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
 		<h2 class="name"><?= $enc->html( $productItem->getName(), $enc::TRUST ); ?></h2>
32 35
 
Please login to merge, or discard this patch.
client/html/src/Client/Html/Catalog/Filter/Tree/Standard.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@
 block discarded – undo
285 285
 			$catItems = $cntl->getPath( $currentid );
286 286
 			$catIds = $catItems->keys()->toArray();
287 287
 		} elseif( $deep === false ) {
288
-			$level = $cntl::LIST;
288
+			$level = $cntl::list;
289 289
 		}
290 290
 
291 291
 		$view->treeCatalogPath = $catItems;
Please login to merge, or discard this patch.
client/html/src/Client/Html/Catalog/Detail/Seen/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -190,8 +190,7 @@
 block discarded – undo
190 190
 				$html = $lastSeen[$name];
191 191
 				unset( $lastSeen[$name] );
192 192
 				$lastSeen[$name] = $html;
193
-			}
194
-			else
193
+			} else
195 194
 			{
196 195
 				/** client/html/catalog/session/seen/maxitems
197 196
 				 * Maximum number of products displayed in the "last seen" section
Please login to merge, or discard this patch.
client/html/src/Client/Html/Supplier/Detail/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -190,8 +190,7 @@  discard block
 block discarded – undo
190 190
 			}
191 191
 
192 192
 			$html = $view->render( $view->config( $tplconf, $default ) );
193
-		}
194
-		else
193
+		} else
195 194
 		{
196 195
 			$html = $this->modifyBody( $html, $uid );
197 196
 		}
@@ -261,8 +260,7 @@  discard block
 block discarded – undo
261 260
 			{
262 261
 				$this->logException( $e );
263 262
 			}
264
-		}
265
-		else
263
+		} else
266 264
 		{
267 265
 			$html = $this->modifyHeader( $html, $uid );
268 266
 		}
Please login to merge, or discard this patch.