Passed
Push — master ( 34bfb7...5172db )
by Aimeos
04:19
created
src/MShop/Service/Provider/Decorator/Delivery.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,9 @@
 block discarded – undo
129 129
 				$feconfig['delivery.type']['default'] = $values;
130 130
 			}
131 131
 		}
132
-		catch( \Aimeos\MShop\Service\Exception $e ) {} // If service isn't available
132
+		catch( \Aimeos\MShop\Service\Exception $e )
133
+		{
134
+} // If service isn't available
133 135
 
134 136
 		return array_merge( $this->getProvider()->getConfigFE( $basket ), $this->getConfigItems( $feconfig ) );
135 137
 	}
Please login to merge, or discard this patch.
src/MShop/Stock/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,8 +208,7 @@
 block discarded – undo
208 208
 				 */
209 209
 				$path = 'mshop/stock/manager/insert';
210 210
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
211
-			}
212
-			else
211
+			} else
213 212
 			{
214 213
 				/** mshop/stock/manager/update/mysql
215 214
 				 * Updates an existing product stock record in the database
Please login to merge, or discard this patch.
src/MShop/Text/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -252,8 +252,7 @@
 block discarded – undo
252 252
 				 */
253 253
 				$path = 'mshop/text/manager/insert';
254 254
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
255
-			}
256
-			else
255
+			} else
257 256
 			{
258 257
 				/** mshop/text/manager/update/mysql
259 258
 				 * Updates an existing text record in the database
Please login to merge, or discard this patch.
src/MShop/Locale/Manager/Language/Standard.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,9 +112,12 @@  discard block
 block discarded – undo
112 112
 	 */
113 113
 	public function create( array $values = [] ) : \Aimeos\MShop\Common\Item\Iface
114 114
 	{
115
-		try {
115
+		try
116
+		{
116 117
 			$values['locale.language.siteid'] = $this->context()->locale()->getSiteId();
117
-		} catch( \Exception $ex ) {
118
+		}
119
+		catch( \Exception $ex )
120
+		{
118 121
 			$values['locale.language.siteid'] = null;
119 122
 		}
120 123
 
@@ -181,8 +184,7 @@  discard block
 block discarded – undo
181 184
 				 */
182 185
 				$path = 'mshop/locale/manager/language/insert';
183 186
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
184
-			}
185
-			else
187
+			} else
186 188
 			{
187 189
 				/** mshop/locale/manager/language/update/mysql
188 190
 				 * Updates an existing language record in the database
Please login to merge, or discard this patch.
src/MShop/Locale/Manager/Currency/Standard.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,9 +112,12 @@  discard block
 block discarded – undo
112 112
 	 */
113 113
 	public function create( array $values = [] ) : \Aimeos\MShop\Common\Item\Iface
114 114
 	{
115
-		try {
115
+		try
116
+		{
116 117
 			$values['locale.currency.siteid'] = $this->context()->locale()->getSiteId();
117
-		} catch( \Exception $e ) {
118
+		}
119
+		catch( \Exception $e )
120
+		{
118 121
 			$values['locale.currency.siteid'] = null;
119 122
 		}
120 123
 
@@ -181,8 +184,7 @@  discard block
 block discarded – undo
181 184
 				 */
182 185
 				$path = 'mshop/locale/manager/currency/insert';
183 186
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
184
-			}
185
-			else
187
+			} else
186 188
 			{
187 189
 				/** mshop/locale/manager/currency/update/mysql
188 190
 				 * Updates an existing currency record in the database
Please login to merge, or discard this patch.
src/MShop/Locale/Manager/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
 	{
208 208
 		$items = [];
209 209
 		$level = \Aimeos\MShop\Locale\Manager\Base::SITE_PATH;
210
-		$search = (clone $search)->add( $this->siteCondition( 'locale.siteid', $level ) );
210
+		$search = ( clone $search )->add( $this->siteCondition( 'locale.siteid', $level ) );
211 211
 
212 212
 		foreach( $this->searchEntries( $search, $ref, $total ) as $row )
213 213
 		{
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -338,8 +338,7 @@
 block discarded – undo
338 338
 				 */
339 339
 				$path = 'mshop/locale/manager/insert';
340 340
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
341
-			}
342
-			else
341
+			} else
343 342
 			{
344 343
 				/** mshop/locale/manager/update/mysql
345 344
 				 * Updates an existing locale record in the database
Please login to merge, or discard this patch.
src/MShop/Attribute/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -373,8 +373,7 @@
 block discarded – undo
373 373
 				 */
374 374
 				$path = 'mshop/attribute/manager/insert';
375 375
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
376
-			}
377
-			else
376
+			} else
378 377
 			{
379 378
 				/** mshop/attribute/manager/update/mysql
380 379
 				 * Updates an existing attribute record in the database
Please login to merge, or discard this patch.
src/MShop/Coupon/Manager/Code/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -421,8 +421,7 @@
 block discarded – undo
421 421
 				 */
422 422
 				$path = 'mshop/coupon/manager/code/insert';
423 423
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
424
-			}
425
-			else
424
+			} else
426 425
 			{
427 426
 				/** mshop/coupon/manager/code/update/mysql
428 427
 				 * Updates an existing coupon code record in the database
Please login to merge, or discard this patch.
src/MShop/Coupon/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -279,8 +279,7 @@
 block discarded – undo
279 279
 				 */
280 280
 				$path = 'mshop/coupon/manager/insert';
281 281
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
282
-			}
283
-			else
282
+			} else
284 283
 			{
285 284
 				/** mshop/coupon/manager/update/mysql
286 285
 				 * Updates an existing coupon record in the database
Please login to merge, or discard this patch.