Passed
Pull Request — master (#107)
by Jonas
03:25
created
client/html/templates/catalog/stock/body-standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,8 +95,7 @@
 block discarded – undo
95 95
 				$textStock[$level],
96 96
 				date_create( $date )->format( $dateFormat )
97 97
 			);
98
-		}
99
-		else
98
+		} else
100 99
 		{
101 100
 			$text = sprintf( $textStockIn,
102 101
 				$typeText[$stockType],
Please login to merge, or discard this patch.
client/html/src/Client/Html/Basket/Mini/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -146,8 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
 			$html = $view->render( $view->config( $tplconf, $default ) );
148 148
 			$this->setBasketCached( $key, $html );
149
-		}
150
-		else
149
+		} else
151 150
 		{
152 151
 			$html = $this->modifyBody( $html, $uid );
153 152
 		}
@@ -216,8 +215,7 @@  discard block
 block discarded – undo
216 215
 			{
217 216
 				$this->logException( $e );
218 217
 			}
219
-		}
220
-		else
218
+		} else
221 219
 		{
222 220
 			$html = $this->modifyHeader( $html, $uid );
223 221
 		}
Please login to merge, or discard this patch.
client/html/src/Client/Html/Catalog/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.
client/html/src/Client/Html/Catalog/Lists/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -205,8 +205,7 @@  discard block
 block discarded – undo
205 205
 			}
206 206
 
207 207
 			$html = $view->render( $this->getTemplatePath( $tplconf, $default ) );
208
-		}
209
-		else
208
+		} else
210 209
 		{
211 210
 			$html = $this->modifyBody( $html, $uid );
212 211
 		}
@@ -290,8 +289,7 @@  discard block
 block discarded – undo
290 289
 			{
291 290
 				$this->logException( $e );
292 291
 			}
293
-		}
294
-		else
292
+		} else
295 293
 		{
296 294
 			$html = $this->modifyHeader( $html, $uid );
297 295
 		}
Please login to merge, or discard this patch.
client/html/src/Client/Html/Account/Download/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -249,13 +249,11 @@
 block discarded – undo
249 249
 			$response->withHeader( 'Expires', '0' );
250 250
 
251 251
 			$response->withBody( $response->createStream( $fs->reads( $value ) ) );
252
-		}
253
-		elseif( filter_var( $value, FILTER_VALIDATE_URL ) !== false )
252
+		} elseif( filter_var( $value, FILTER_VALIDATE_URL ) !== false )
254 253
 		{
255 254
 			$response->withHeader( 'Location', $value );
256 255
 			$response->withStatus( 303 );
257
-		}
258
-		else
256
+		} else
259 257
 		{
260 258
 			$response->withStatus( 404 );
261 259
 		}
Please login to merge, or discard this patch.
client/html/src/Client/Html/Email/Delivery/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -522,12 +522,10 @@
 block discarded – undo
522 522
 				{
523 523
 					throw new \Aimeos\Client\Html\Exception( $e->getMessage() );
524 524
 				}
525
-			}
526
-			else if( function_exists( 'mime_content_type' ) )
525
+			} else if( function_exists( 'mime_content_type' ) )
527 526
 			{
528 527
 				$mimetype = mime_content_type( $filename );
529
-			}
530
-			else
528
+			} else
531 529
 			{
532 530
 				$mimetype = 'application/binary';
533 531
 			}
Please login to merge, or discard this patch.
client/html/templates/common/summary/service-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,11 @@
 block discarded – undo
38 38
 						<span class="name">
39 39
 							<?php if( $attribute->getName() != '' ) : ?>
40 40
 								<?= $enc->html( $attribute->getName() ); ?>
41
-							<?php else : ?>
42
-								<?= $enc->html( $this->translate( 'client/code', $attribute->getCode() ) ); ?>
41
+							<?php else {
42
+	: ?>
43
+								<?= $enc->html( $this->translate( 'client/code', $attribute->getCode() ) );
44
+}
45
+?>
43 46
 							<?php endif; ?>
44 47
 						</span>
45 48
 
Please login to merge, or discard this patch.
client/html/templates/email/account/text-body-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,11 @@
 block discarded – undo
20 20
 
21 21
 <?php if( ( $pass = $this->get( 'extAccountPassword' ) ) !== null ) : ?>
22 22
 	<?= $this->translate( 'client', 'Password' ); ?>: <?= $pass; ?>
23
-<?php else : ?>
24
-	<?= $this->translate( 'client', 'Password' ); ?>: <?= $this->translate( 'client', 'Like entered by you' ); ?>
23
+<?php else {
24
+	: ?>
25
+	<?= $this->translate( 'client', 'Password' );
26
+}
27
+?>: <?= $this->translate( 'client', 'Like entered by you' ); ?>
25 28
 <?php endif; ?>
26 29
 
27 30
 
Please login to merge, or discard this patch.
client/html/src/Client/Html/Email/Payment/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -522,12 +522,10 @@
 block discarded – undo
522 522
 				{
523 523
 					throw new \Aimeos\Client\Html\Exception( $e->getMessage() );
524 524
 				}
525
-			}
526
-			else if( function_exists( 'mime_content_type' ) )
525
+			} else if( function_exists( 'mime_content_type' ) )
527 526
 			{
528 527
 				$mimetype = mime_content_type( $filename );
529
-			}
530
-			else
528
+			} else
531 529
 			{
532 530
 				$mimetype = 'application/binary';
533 531
 			}
Please login to merge, or discard this patch.