Completed
Push — master ( 7ac949...d0dda4 )
by Aimeos
11:16
created
lib/mshoplib/setup/default/DemoAddCustomerData.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@
 block discarded – undo
75 75
 			$this->saveCustomerItems( $data );
76 76
 
77 77
 			$this->status( 'added' );
78
-		}
79
-		else
78
+		} else
80 79
 		{
81 80
 			$this->status( 'removed' );
82 81
 		}
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 		if( $value === '1' )
76 76
 		{
77 77
 			$ds = DIRECTORY_SEPARATOR;
78
-			$path = __DIR__ . $ds . 'data' . $ds . 'demo-customer.php';
78
+			$path = __DIR__.$ds.'data'.$ds.'demo-customer.php';
79 79
 
80 80
 			if( ( $data = include( $path ) ) == false ) {
81 81
 				throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for customer domain', $path ) );
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/DemoAddProductData.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,8 +77,7 @@
 block discarded – undo
77 77
 		{
78 78
 			$this->addDemoData();
79 79
 			$this->status( 'added' );
80
-		}
81
-		else
80
+		} else
82 81
 		{
83 82
 			$this->status( 'removed' );
84 83
 		}
Please login to merge, or discard this 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
 			$this->removeItems( $item->getId(), 'product/lists', 'product', 'text' );
70 70
 			$this->removeListItems( $item->getId(), 'product/lists', 'product' );
71 71
 
72
-			$productCodes[] =  $item->getCode();
72
+			$productCodes[] = $item->getCode();
73 73
 		}
74 74
 
75 75
 		$this->removeStockItems( $productCodes );
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	protected function addDemoData()
97 97
 	{
98 98
 		$ds = DIRECTORY_SEPARATOR;
99
-		$path = __DIR__ . $ds . 'data' . $ds . 'demo-product.php';
99
+		$path = __DIR__.$ds.'data'.$ds.'demo-product.php';
100 100
 
101 101
 		if( ( $data = include( $path ) ) == false ) {
102 102
 			throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for product domain', $path ) );
Please login to merge, or discard this patch.
lib/mshoplib/src/MAdmin/Cache/Manager/Standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -201,9 +201,12 @@  discard block
 block discarded – undo
201 201
 			);
202 202
 			$dbm = $context->getDatabaseManager();
203 203
 
204
-			try {
204
+			try
205
+			{
205 206
 				$this->object = \Aimeos\MW\Cache\Factory::createManager( $name, $config, $dbm );
206
-			} catch( \Exception $e ) {
207
+			}
208
+			catch( \Exception $e )
209
+			{
207 210
 				$this->object = \Aimeos\MW\Cache\Factory::createManager( 'DB', $config, $dbm );
208 211
 			}
209 212
 		}
@@ -265,9 +268,12 @@  discard block
 block discarded – undo
265 268
 	 */
266 269
 	public function createItem()
267 270
 	{
268
-		try {
271
+		try
272
+		{
269 273
 			$values = array( 'siteid' => $this->getContext()->getLocale()->getSiteId() );
270
-		} catch( \Exception $e ) {
274
+		}
275
+		catch( \Exception $e )
276
+		{
271 277
 			$values = array( 'siteid' => null );
272 278
 		}
273 279
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Common/Manager/Base.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -668,8 +668,7 @@
 block discarded – undo
668 668
 
669 669
 		if( isset( $attributes[$name] ) && $attributes[$name] instanceof $iface ) {
670 670
 			return $attributes[$name]->getInternalDeps();
671
-		}
672
-		else if( isset( $attributes['id'] ) && $attributes['id'] instanceof $iface ) {
671
+		} else if( isset( $attributes['id'] ) && $attributes['id'] instanceof $iface ) {
673 672
 			return $attributes['id']->getInternalDeps();
674 673
 		}
675 674
 
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 		$conn = $dbm->acquire( $dbname );
257 257
 
258 258
 		$object = new \Aimeos\MW\Criteria\SQL( $conn );
259
-		$object->setConditions( $object->compare( '==', $domain . '.status', 1 ) );
259
+		$object->setConditions( $object->compare( '==', $domain.'.status', 1 ) );
260 260
 
261 261
 		$dbm->release( $conn, $dbname );
262 262
 
@@ -359,9 +359,9 @@  discard block
 block discarded – undo
359 359
 	protected function getSqlConfig( $path )
360 360
 	{
361 361
 		$config = $this->getContext()->getConfig();
362
-		$adapter = $config->get( 'resource/' . $this->getResourceName() . '/adapter' );
362
+		$adapter = $config->get( 'resource/'.$this->getResourceName().'/adapter' );
363 363
 
364
-		return $config->get( $path . '/' . $adapter, $config->get( $path . '/ansi', $path ) );
364
+		return $config->get( $path.'/'.$adapter, $config->get( $path.'/ansi', $path ) );
365 365
 	}
366 366
 
367 367
 
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 	{
378 378
 		$domain = strtolower( $domain );
379 379
 		$manager = strtolower( $manager );
380
-		$key = $domain . $manager . $name;
380
+		$key = $domain.$manager.$name;
381 381
 
382 382
 		if( !isset( $this->subManagers[$key] ) )
383 383
 		{
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 			}
391 391
 
392 392
 			if( $name === null ) {
393
-				$path = 'mshop/' . $domain . '/manager/' . $manager . '/name';
393
+				$path = 'mshop/'.$domain.'/manager/'.$manager.'/name';
394 394
 				$name = $this->context->getConfig()->get( $path, 'Standard' );
395 395
 			}
396 396
 
@@ -401,8 +401,8 @@  discard block
 block discarded – undo
401 401
 			$domainname = ucfirst( $domain );
402 402
 			$subnames = $this->createSubNames( $manager );
403 403
 
404
-			$classname = '\\Aimeos\\MShop\\' . $domainname . '\\Manager\\' . $subnames . '\\' . $name;
405
-			$interface = '\\Aimeos\\MShop\\' . $domainname . '\\Manager\\' . $subnames . '\\Iface';
404
+			$classname = '\\Aimeos\\MShop\\'.$domainname.'\\Manager\\'.$subnames.'\\'.$name;
405
+			$interface = '\\Aimeos\\MShop\\'.$domainname.'\\Manager\\'.$subnames.'\\Iface';
406 406
 
407 407
 			if( class_exists( $classname ) === false ) {
408 408
 				throw new \Aimeos\MShop\Exception( sprintf( 'Class "%1$s" not available', $classname ) );
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
 				throw new \Aimeos\MShop\Exception( sprintf( 'Invalid characters in class name "%1$s"', $name ) );
442 442
 			}
443 443
 
444
-			$classname = $classprefix . $name;
444
+			$classname = $classprefix.$name;
445 445
 
446 446
 			if( class_exists( $classname ) === false ) {
447 447
 				throw new \Aimeos\MShop\Exception( sprintf( 'Class "%1$s" not available', $classname ) );
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
 		$config = $this->context->getConfig();
471 471
 
472 472
 		$decorators = $config->get( 'mshop/common/manager/decorators/default', [] );
473
-		$excludes = $config->get( 'mshop/' . $domain . '/manager/' . $managerpath . '/decorators/excludes', [] );
473
+		$excludes = $config->get( 'mshop/'.$domain.'/manager/'.$managerpath.'/decorators/excludes', [] );
474 474
 
475 475
 		foreach( $decorators as $key => $name )
476 476
 		{
@@ -483,12 +483,12 @@  discard block
 block discarded – undo
483 483
 		$manager = $this->addDecorators( $this->context, $manager, $decorators, $classprefix );
484 484
 
485 485
 		$classprefix = '\\Aimeos\\MShop\\Common\\Manager\\Decorator\\';
486
-		$decorators = $config->get( 'mshop/' . $domain . '/manager/' . $managerpath . '/decorators/global', [] );
486
+		$decorators = $config->get( 'mshop/'.$domain.'/manager/'.$managerpath.'/decorators/global', [] );
487 487
 		$manager = $this->addDecorators( $this->context, $manager, $decorators, $classprefix );
488 488
 
489 489
 		$subpath = $this->createSubNames( $managerpath );
490
-		$classprefix = 'MShop_' . ucfirst( $domain ) . '_Manager_' . $subpath . '_Decorator_';
491
-		$decorators = $config->get( 'mshop/' . $domain . '/manager/' . $managerpath . '/decorators/local', [] );
490
+		$classprefix = 'MShop_'.ucfirst( $domain ).'_Manager_'.$subpath.'_Decorator_';
491
+		$decorators = $config->get( 'mshop/'.$domain.'/manager/'.$managerpath.'/decorators/local', [] );
492 492
 
493 493
 		return $this->addDecorators( $this->context, $manager, $decorators, $classprefix );
494 494
 	}
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
 	{
615 615
 		$iface = '\\Aimeos\\MW\\Criteria\\Attribute\\Iface';
616 616
 		$sep = $this->getKeySeparator();
617
-		$name = $prefix . $sep . 'id';
617
+		$name = $prefix.$sep.'id';
618 618
 
619 619
 		if( isset( $attributes[$name] ) && $attributes[$name] instanceof $iface ) {
620 620
 			return $attributes[$name]->getInternalDeps();
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
 	{
673 673
 		$config = $this->context->getConfig();
674 674
 
675
-		if( $config->get( 'resource/' . $name ) === null ) {
675
+		if( $config->get( 'resource/'.$name ) === null ) {
676 676
 			$this->resourceName = $config->get( 'resource/default', 'db' );
677 677
 		} else {
678 678
 			$this->resourceName = $name;
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
 
743 743
 		foreach( $keys as $key )
744 744
 		{
745
-			$name = $key . $sep . 'siteid';
745
+			$name = $key.$sep.'siteid';
746 746
 
747 747
 			if( isset( $attributes[$name] ) ) {
748 748
 				$cond[] = $search->compare( '==', $name, $siteIds );
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
 			$row = $results->fetch();
831 831
 			$results->finish();
832 832
 
833
-			$msg = get_class( $this ) . ' (' . ( ( microtime( true ) - $time ) * 1000 ) . 'ms): SQL = ' . $stmt;
833
+			$msg = get_class( $this ).' ('.( ( microtime( true ) - $time ) * 1000 ).'ms): SQL = '.$stmt;
834 834
 			$this->context->getLogger()->log( $msg, \Aimeos\MW\Logger\Base::DEBUG, 'core/sql' );
835 835
 
836 836
 			if( $row === false ) {
@@ -848,7 +848,7 @@  discard block
 block discarded – undo
848 848
 		$stmt = $conn->create( $sql->str() );
849 849
 		$results = $stmt->execute();
850 850
 
851
-		$msg = get_class( $this ) . ' (' . ( ( microtime( true ) - $time ) * 1000 ) . 'ms): SQL = ' . $stmt;
851
+		$msg = get_class( $this ).' ('.( ( microtime( true ) - $time ) * 1000 ).'ms): SQL = '.$stmt;
852 852
 		$this->context->getLogger()->log( $msg, \Aimeos\MW\Logger\Base::DEBUG, 'core/sql' );
853 853
 
854 854
 		return $results;
@@ -874,7 +874,7 @@  discard block
 block discarded – undo
874 874
 		$search->setConditions( $search->compare( '==', $name, $ids ) );
875 875
 
876 876
 		$types = array( $name => \Aimeos\MW\DB\Statement\Base::PARAM_STR );
877
-		$translations = array( $name => '"' . $name . '"' );
877
+		$translations = array( $name => '"'.$name.'"' );
878 878
 
879 879
 		$cond = $search->getConditionString( $types, $translations );
880 880
 		$sql = str_replace( ':cond', $cond, $this->getSqlConfig( $cfgpath ) );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Common/Manager/Lists/Base.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -243,8 +243,7 @@
 block discarded – undo
243 243
 				$stmt->bind( 8, $pos, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
244 244
 
245 245
 				$stmt->execute()->finish();
246
-			}
247
-			else
246
+			} else
248 247
 			{
249 248
 				$sql = $this->getSqlConfig( $cfgPath . 'getposmax' );
250 249
 
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	public function aggregate( \Aimeos\MW\Criteria\Iface $search, $key )
64 64
 	{
65 65
 		$required = array( trim( $this->prefix, '.' ) );
66
-		return $this->aggregateBase( $search, $key, $this->getConfigPath() . 'aggregate', $required );
66
+		return $this->aggregateBase( $search, $key, $this->getConfigPath().'aggregate', $required );
67 67
 	}
68 68
 
69 69
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	public function createItem()
76 76
 	{
77 77
 		$values = array(
78
-			$this->prefix . 'siteid' => $this->getContext()->getLocale()->getSiteId()
78
+			$this->prefix.'siteid' => $this->getContext()->getLocale()->getSiteId()
79 79
 		);
80 80
 		return $this->createItemBase( $values );
81 81
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 			}
113 113
 
114 114
 			$time = date( 'Y-m-d H:i:s' );
115
-			$stmt = $this->getCachedStatement( $conn, $this->getConfigPath() . $type );
115
+			$stmt = $this->getCachedStatement( $conn, $this->getConfigPath().$type );
116 116
 
117 117
 			$stmt->bind( 1, $item->getParentId(), \Aimeos\MW\DB\Statement\Base::PARAM_INT );
118 118
 			$stmt->bind( 2, $item->getTypeId(), \Aimeos\MW\DB\Statement\Base::PARAM_INT );
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 			if( $fetch === true )
140 140
 			{
141 141
 				if( $id === null ) {
142
-					$path = $this->getConfigPath() . 'newid';
142
+					$path = $this->getConfigPath().'newid';
143 143
 					$item->setId( $this->newId( $conn, $path ) );
144 144
 				} else {
145 145
 					$item->setId( $id ); // modified false
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 	 */
164 164
 	public function deleteItems( array $ids )
165 165
 	{
166
-		$this->deleteItemsBase( $ids, $this->getConfigPath() . 'delete' );
166
+		$this->deleteItemsBase( $ids, $this->getConfigPath().'delete' );
167 167
 	}
168 168
 
169 169
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 			{
236 236
 				$newpos = $pos;
237 237
 
238
-				$sql = $this->getSqlConfig( $cfgPath . 'move' );
238
+				$sql = $this->getSqlConfig( $cfgPath.'move' );
239 239
 
240 240
 				$stmt = $conn->create( $sql );
241 241
 				$stmt->bind( 1, +1, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 			}
252 252
 			else
253 253
 			{
254
-				$sql = $this->getSqlConfig( $cfgPath . 'getposmax' );
254
+				$sql = $this->getSqlConfig( $cfgPath.'getposmax' );
255 255
 
256 256
 				$stmt = $conn->create( $sql );
257 257
 
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 				}
270 270
 			}
271 271
 
272
-			$sql = $this->getSqlConfig( $cfgPath . 'updatepos' );
272
+			$sql = $this->getSqlConfig( $cfgPath.'updatepos' );
273 273
 
274 274
 			$stmt = $conn->create( $sql );
275 275
 			$stmt->bind( 1, $newpos, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 
287 287
 			if( $oldpos > 0 )
288 288
 			{
289
-				$sql = $this->getSqlConfig( $cfgPath . 'move' );
289
+				$sql = $this->getSqlConfig( $cfgPath.'move' );
290 290
 
291 291
 				$stmt = $conn->create( $sql );
292 292
 				$stmt->bind( 1, -1, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
@@ -336,8 +336,8 @@  discard block
 block discarded – undo
336 336
 			}
337 337
 
338 338
 			$level = \Aimeos\MShop\Locale\Manager\Base::SITE_ALL;
339
-			$cfgPathSearch = $this->getConfigPath() . 'search';
340
-			$cfgPathCount = $this->getConfigPath() . 'count';
339
+			$cfgPathSearch = $this->getConfigPath().'search';
340
+			$cfgPathCount = $this->getConfigPath().'count';
341 341
 
342 342
 			$name = trim( $this->prefix, '.' );
343 343
 			$required = array( $name );
@@ -346,12 +346,12 @@  discard block
 block discarded – undo
346 346
 
347 347
 			while( ( $row = $results->fetch() ) !== false )
348 348
 			{
349
-				if( ( $row[$this->prefix . 'config'] = json_decode( $row[$this->prefix . 'config'], true ) ) === null ) {
350
-					$row[$this->prefix . 'config'] = [];
349
+				if( ( $row[$this->prefix.'config'] = json_decode( $row[$this->prefix.'config'], true ) ) === null ) {
350
+					$row[$this->prefix.'config'] = [];
351 351
 				}
352 352
 
353
-				$map[$row[$this->prefix . 'id']] = $row;
354
-				$typeIds[$row[$this->prefix . 'typeid']] = null;
353
+				$map[$row[$this->prefix.'id']] = $row;
354
+				$typeIds[$row[$this->prefix.'typeid']] = null;
355 355
 			}
356 356
 
357 357
 			$dbm->release( $conn, $dbname );
@@ -366,19 +366,19 @@  discard block
 block discarded – undo
366 366
 		{
367 367
 			$typeManager = $this->getObject()->getSubManager( 'type' );
368 368
 			$typeSearch = $typeManager->createSearch();
369
-			$typeSearch->setConditions( $typeSearch->compare( '==', $name . '.type.id', array_keys( $typeIds ) ) );
369
+			$typeSearch->setConditions( $typeSearch->compare( '==', $name.'.type.id', array_keys( $typeIds ) ) );
370 370
 			$typeSearch->setSlice( 0, $search->getSliceSize() );
371 371
 			$typeItems = $typeManager->searchItems( $typeSearch );
372 372
 
373 373
 			foreach( $map as $id => $row )
374 374
 			{
375
-				if( isset( $typeItems[$row[$this->prefix . 'typeid']] ) )
375
+				if( isset( $typeItems[$row[$this->prefix.'typeid']] ) )
376 376
 				{
377
-					$row[$this->prefix . 'type'] = $typeItems[$row[$this->prefix . 'typeid']]->getCode();
378
-					$row[$this->prefix . 'typename'] = $typeItems[$row[$this->prefix . 'typeid']]->getName();
377
+					$row[$this->prefix.'type'] = $typeItems[$row[$this->prefix.'typeid']]->getCode();
378
+					$row[$this->prefix.'typename'] = $typeItems[$row[$this->prefix.'typeid']]->getName();
379 379
 				}
380 380
 
381
-				$items[$row[$this->prefix . 'id']] = $this->createItemBase( $row );
381
+				$items[$row[$this->prefix.'id']] = $this->createItemBase( $row );
382 382
 			}
383 383
 		}
384 384
 
@@ -417,8 +417,8 @@  discard block
 block discarded – undo
417 417
 			}
418 418
 
419 419
 			$level = \Aimeos\MShop\Locale\Manager\Base::SITE_ALL;
420
-			$cfgPathSearch = $this->getConfigPath() . 'search';
421
-			$cfgPathCount = $this->getConfigPath() . 'count';
420
+			$cfgPathSearch = $this->getConfigPath().'search';
421
+			$cfgPathCount = $this->getConfigPath().'count';
422 422
 
423 423
 			$name = trim( $this->prefix, '.' );
424 424
 			$required = array( $name );
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
 			$results = $this->searchItemsBase( $conn, $search, $cfgPathSearch, $cfgPathCount, $required, $total, $level );
427 427
 
428 428
 			while( ( $row = $results->fetch() ) !== false ) {
429
-				$map[$row[$this->prefix . 'domain']][] = $row[$this->prefix . 'refid'];
429
+				$map[$row[$this->prefix.'domain']][] = $row[$this->prefix.'refid'];
430 430
 			}
431 431
 
432 432
 			$dbm->release( $conn, $dbname );
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
 
445 445
 			$search = $manager->createSearch( true );
446 446
 			$expr = array(
447
-				$search->compare( '==', str_replace( '/', '.', $domain ) . '.id', $list ),
447
+				$search->compare( '==', str_replace( '/', '.', $domain ).'.id', $list ),
448 448
 				$search->getConditions(),
449 449
 			);
450 450
 			$search->setConditions( $search->combine( '&&', $expr ) );
@@ -476,13 +476,13 @@  discard block
 block discarded – undo
476 476
 			$expr[] = $object->getConditions();
477 477
 
478 478
 			$exprTwo = [];
479
-			$exprTwo[] = $object->compare( '<=', $prefix . '.datestart', $curDate );
480
-			$exprTwo[] = $object->compare( '==', $prefix . '.datestart', null );
479
+			$exprTwo[] = $object->compare( '<=', $prefix.'.datestart', $curDate );
480
+			$exprTwo[] = $object->compare( '==', $prefix.'.datestart', null );
481 481
 			$expr[] = $object->combine( '||', $exprTwo );
482 482
 
483 483
 			$exprTwo = [];
484
-			$exprTwo[] = $object->compare( '>=', $prefix . '.dateend', $curDate );
485
-			$exprTwo[] = $object->compare( '==', $prefix . '.dateend', null );
484
+			$exprTwo[] = $object->compare( '>=', $prefix.'.dateend', $curDate );
485
+			$exprTwo[] = $object->compare( '==', $prefix.'.dateend', null );
486 486
 			$expr[] = $object->combine( '||', $exprTwo );
487 487
 
488 488
 			$object->setConditions( $object->combine( '&&', $expr ) );
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
 	 */
504 504
 	public function getSubManager( $manager, $name = null )
505 505
 	{
506
-		return $this->getSubManagerBase( 'common', 'lists/' . $manager, $name );
506
+		return $this->getSubManagerBase( 'common', 'lists/'.$manager, $name );
507 507
 	}
508 508
 
509 509
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Coupon/Provider/Base.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 
291 291
 			$taxrates[$taxrate]->addItem( $price );
292 292
 		}
293
-		catch( \Exception $e ) { ; } // if delivery service isn't available
293
+		catch( \Exception $e ) {; } // if delivery service isn't available
294 294
 
295 295
 		try
296 296
 		{
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 
304 304
 			$taxrates[$taxrate]->addItem( $price );
305 305
 		}
306
-		catch( \Exception $e ) { ; } // if payment service isn't available
306
+		catch( \Exception $e ) {; } // if payment service isn't available
307 307
 
308 308
 		return $taxrates;
309 309
 	}
Please login to merge, or discard this patch.
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -233,8 +233,7 @@  discard block
 block discarded – undo
233 233
 			{
234 234
 				$value = $price->getValue() + $price->getCosts();
235 235
 				$rebate -= $value;
236
-			}
237
-			else
236
+			} else
238 237
 			{
239 238
 				$value = $rebate;
240 239
 				$rebate = '0.00';
@@ -290,7 +289,9 @@  discard block
 block discarded – undo
290 289
 
291 290
 			$taxrates[$taxrate]->addItem( $price );
292 291
 		}
293
-		catch( \Exception $e ) { ; } // if delivery service isn't available
292
+		catch( \Exception $e )
293
+		{
294
+; } // if delivery service isn't available
294 295
 
295 296
 		try
296 297
 		{
@@ -303,7 +304,9 @@  discard block
 block discarded – undo
303 304
 
304 305
 			$taxrates[$taxrate]->addItem( $price );
305 306
 		}
306
-		catch( \Exception $e ) { ; } // if payment service isn't available
307
+		catch( \Exception $e )
308
+		{
309
+; } // if payment service isn't available
307 310
 
308 311
 		return $taxrates;
309 312
 	}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Coupon/Provider/FixedRebate.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
 			if( isset( $config['fixedrebate.rebate'][$currency] ) ) {
51 51
 				$rebate = $config['fixedrebate.rebate'][$currency];
52 52
 			}
53
-		}
54
-		else
53
+		} else
55 54
 		{
56 55
 			$rebate = $config['fixedrebate.rebate'];
57 56
 		}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Provider/Decorator/Country.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,10 +118,11 @@
 block discarded – undo
118 118
 			) {
119 119
 				return false;
120 120
 			}
121
-		}
122
-		else if( isset( $addresses[$paymentType] ) ) // use billing address if no delivery address is available
121
+		} else if( isset( $addresses[$paymentType] ) ) {
122
+			// use billing address if no delivery address is available
123 123
 		{
124 124
 			$code = strtoupper( $addresses[$paymentType]->getCountryId() );
125
+		}
125 126
 
126 127
 			if( $this->checkCountryCode( $code, 'country.delivery-include' ) === false
127 128
 				|| $this->checkCountryCode( $code, 'country.delivery-exclude' ) === true
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Criteria/Attribute/Standard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@
 block discarded – undo
90 90
 
91 91
 		foreach( $required as $entry )
92 92
 		{
93
-			if ( !isset($params[$entry]) ) {
94
-				throw new \Aimeos\MW\Common\Exception( sprintf('Required parameter "%1$s" is missing', $entry) );
93
+			if( !isset( $params[$entry] ) ) {
94
+				throw new \Aimeos\MW\Common\Exception( sprintf( 'Required parameter "%1$s" is missing', $entry ) );
95 95
 			}
96 96
 		}
97 97
 
Please login to merge, or discard this patch.