Passed
Branch master (4f99e3)
by Aimeos
04:48
created
client/html/templates/account/watch/body-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,9 +126,12 @@
 block discarded – undo
126 126
 
127 127
 							<?php if( ( $mediaItem = reset( $mediaItems ) ) !== false ) : ?>
128 128
 								<div class="media-item" style="background-image: url('<?= $this->content( $mediaItem->getPreview() ); ?>')"></div>
129
-							<?php else : ?>
129
+							<?php else {
130
+	: ?>
130 131
 								<div class="media-item"></div>
131
-							<?php endif; ?>
132
+							<?php endif;
133
+}
134
+?>
132 135
 
133 136
 							<h3 class="name"><?= $enc->html( $productItem->getName(), $enc::TRUST ); ?></h3>
134 137
 
Please login to merge, or discard this patch.
client/html/tests/Client/Html/Common/Decorator/ExampleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 			->getMock();
36 36
 
37 37
 		$this->object = new \Aimeos\Client\Html\Common\Decorator\Example( $this->client, $context, [] );
38
-		$this->object->setView( \TestHelperHtml::getView());
38
+		$this->object->setView( \TestHelperHtml::getView() );
39 39
 	}
40 40
 
41 41
 
Please login to merge, or discard this patch.
client/html/tests/Client/Html/Basket/Mini/StandardTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,8 +156,8 @@
 block discarded – undo
156 156
 
157 157
 
158 158
 	/**
159
-	* @param string $code
160
-	*/
159
+	 * @param string $code
160
+	 */
161 161
 	protected function getProductItem( $code )
162 162
 	{
163 163
 		$manager = \Aimeos\MShop\Product\Manager\Factory::create( $this->context );
Please login to merge, or discard this patch.
client/html/tests/Client/Html/Catalog/Lists/StandardTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 			->getMock();
344 344
 
345 345
 		$object->expects( $this->once() )->method( 'getClientParams' )
346
-			->will( $this->throwException( new \Aimeos\Client\Html\Exception( 'text exception') ) );
346
+			->will( $this->throwException( new \Aimeos\Client\Html\Exception( 'text exception' ) ) );
347 347
 
348 348
 		$object->setView( \TestHelperHtml::getView() );
349 349
 
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 			->getMock();
362 362
 
363 363
 		$object->expects( $this->once() )->method( 'getClientParams' )
364
-			->will( $this->throwException( new \Aimeos\Controller\Frontend\Exception( 'text exception') ) );
364
+			->will( $this->throwException( new \Aimeos\Controller\Frontend\Exception( 'text exception' ) ) );
365 365
 
366 366
 		$object->setView( \TestHelperHtml::getView() );
367 367
 
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 			->getMock();
380 380
 
381 381
 		$object->expects( $this->once() )->method( 'getClientParams' )
382
-			->will( $this->throwException( new \Aimeos\MShop\Exception( 'text exception') ) );
382
+			->will( $this->throwException( new \Aimeos\MShop\Exception( 'text exception' ) ) );
383 383
 
384 384
 		$object->setView( \TestHelperHtml::getView() );
385 385
 
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 		->getMock();
398 398
 
399 399
 		$object->expects( $this->once() )->method( 'getClientParams' )
400
-		->will( $this->throwException( new \RuntimeException( 'text exception') ) );
400
+		->will( $this->throwException( new \RuntimeException( 'text exception' ) ) );
401 401
 
402 402
 		$object->setView( \TestHelperHtml::getView() );
403 403
 
Please login to merge, or discard this patch.
client/html/tests/bootstrap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,17 +4,17 @@
 block discarded – undo
4 4
  * Set error reporting to maximum
5 5
  */
6 6
 error_reporting( -1 );
7
-ini_set('display_errors', true);
7
+ini_set( 'display_errors', true );
8 8
 
9
-date_default_timezone_set('UTC');
9
+date_default_timezone_set( 'UTC' );
10 10
 
11 11
 /*
12 12
  * Set locale settings to reasonable defaults
13 13
  */
14
-setlocale(LC_ALL, 'en_US.UTF-8');
15
-setlocale(LC_NUMERIC, 'POSIX');
16
-setlocale(LC_CTYPE, 'en_US.UTF-8');
17
-setlocale(LC_TIME, 'POSIX');
14
+setlocale( LC_ALL, 'en_US.UTF-8' );
15
+setlocale( LC_NUMERIC, 'POSIX' );
16
+setlocale( LC_CTYPE, 'en_US.UTF-8' );
17
+setlocale( LC_TIME, 'POSIX' );
18 18
 
19 19
 
20 20
 require_once 'TestHelperHtml.php';
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Customer/Email/Watch/Standard.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 		foreach( $listItems as $id => $listItem )
118 118
 		{
119 119
 			$refId = $listItem->getRefId();
120
-			$custIds[ $listItem->getParentId() ][$id] = $refId;
120
+			$custIds[$listItem->getParentId()][$id] = $refId;
121 121
 			$prodIds[$refId] = $refId;
122 122
 		}
123 123
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 					}
242 242
 				}
243 243
 			}
244
-			catch( \Exception $e ) { ; } // no price available
244
+			catch( \Exception $e ) {; } // no price available
245 245
 		}
246 246
 
247 247
 		return $result;
@@ -265,12 +265,12 @@  discard block
 block discarded – undo
265 265
 		}
266 266
 
267 267
 		foreach( $this->getStockItems( $context, $productCodes, $stockType ) as $stockItem ) {
268
-			$stockMap[ $stockItem->getProductCode() ] = true;
268
+			$stockMap[$stockItem->getProductCode()] = true;
269 269
 		}
270 270
 
271 271
 		foreach( $productItems as $productId => $productItem )
272 272
 		{
273
-			if( !isset( $stockMap[ $productItem->getCode() ] ) ) {
273
+			if( !isset( $stockMap[$productItem->getCode()] ) ) {
274 274
 				unset( $productItems[$productId] );
275 275
 			}
276 276
 		}
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 			$search->combine( '||', array(
320 320
 				$search->compare( '==', 'stock.stocklevel', null ),
321 321
 				$search->compare( '>', 'stock.stocklevel', 0 ),
322
-			)),
322
+			) ),
323 323
 			$search->getConditions(),
324 324
 		);
325 325
 		$search->setConditions( $search->combine( '&&', $expr ) );
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,9 @@
 block discarded – undo
241 241
 					}
242 242
 				}
243 243
 			}
244
-			catch( \Exception $e ) { ; } // no price available
244
+			catch( \Exception $e )
245
+			{
246
+; } // no price available
245 247
 		}
246 248
 
247 249
 		return $result;
Please login to merge, or discard this patch.
jobs/tests/Controller/Jobs/Customer/Email/Account/StandardTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 			->getMock();
70 70
 
71 71
 		$queueStub->expects( $this->exactly( 2 ) )->method( 'get' )
72
-			->will( $this->onConsecutiveCalls( new \Aimeos\MW\MQueue\Message\Standard( array( 'message' => '{}') ), null ) );
72
+			->will( $this->onConsecutiveCalls( new \Aimeos\MW\MQueue\Message\Standard( array( 'message' => '{}' ) ), null ) );
73 73
 
74 74
 		$queueStub->expects( $this->once() )->method( 'del' );
75 75
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 			->getMock();
104 104
 
105 105
 		$queueStub->expects( $this->exactly( 2 ) )->method( 'get' )
106
-			->will( $this->onConsecutiveCalls( new \Aimeos\MW\MQueue\Message\Standard( array( 'message' => 'error') ), null ) );
106
+			->will( $this->onConsecutiveCalls( new \Aimeos\MW\MQueue\Message\Standard( array( 'message' => 'error' ) ), null ) );
107 107
 
108 108
 		$queueStub->expects( $this->once() )->method( 'del' );
109 109
 
Please login to merge, or discard this patch.