Passed
Push — master ( e7d28b...1359be )
by Aimeos
05:50
created
src/Controller/Common/Order/Standard.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -344,7 +344,8 @@
 block discarded – undo
344 344
 				{
345 345
 					$stockManager->decrease( [$item->getProductId() => -1 * $how * $item->getQuantity()], $item->getStockType() );
346 346
 
347
-					switch( $item->getType() ) {
347
+					switch( $item->getType() )
348
+					{
348 349
 						case 'default':
349 350
 							$this->updateStockBundle( $item->getParentProductId(), $item->getStockType() ); break;
350 351
 						case 'select':
Please login to merge, or discard this patch.
src/Controller/Common/Media/Standard.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -196,8 +196,7 @@
 block discarded – undo
196 196
 		{
197 197
 			$item = $this->deletePreviews( $item, $fsname );
198 198
 			$item = $this->addImages( $item, $media, $name, $fsname );
199
-		}
200
-		else
199
+		} else
201 200
 		{
202 201
 			$mimetype = $this->getMimeType( $media, 'files' );
203 202
 			$item = $item->setPreviews( [1 => $this->getMimeIcon( $mimetype, $fsname )] )
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -482,7 +482,7 @@
 block discarded – undo
482 482
 		$siteId = $this->context->locale()->getSiteId();
483 483
 
484 484
 		// the "d" after {siteid} is the required extension for Windows (no dots at the and allowed)
485
-		return "${siteId}d/${type}/${filename[0]}/${filename[1]}/${filename}${ext}";
485
+		return "${siteid}d/${type}/${filename[0]}/${filename[1]}/${filename}${ext}";
486 486
 	}
487 487
 
488 488
 
Please login to merge, or discard this patch.
src/MShop/Tag/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -203,8 +203,7 @@
 block discarded – undo
203 203
 				 */
204 204
 				$path = 'mshop/tag/manager/insert';
205 205
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
206
-			}
207
-			else
206
+			} else
208 207
 			{
209 208
 				/** mshop/tag/manager/update/mysql
210 209
 				 * Updates an existing tag tag record in the database
Please login to merge, or discard this patch.
src/MShop/Price/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -442,8 +442,7 @@
 block discarded – undo
442 442
 				 */
443 443
 				$path = 'mshop/price/manager/insert';
444 444
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
445
-			}
446
-			else
445
+			} else
447 446
 			{
448 447
 				/** mshop/price/manager/update/mysql
449 448
 				 * Updates an existing price record in the database
Please login to merge, or discard this patch.
src/MShop/Service/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -390,8 +390,7 @@
 block discarded – undo
390 390
 				 */
391 391
 				$path = 'mshop/service/manager/insert';
392 392
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
393
-			}
394
-			else
393
+			} else
395 394
 			{
396 395
 				/** mshop/service/manager/update/mysql
397 396
 				 * Updates an existing service record in the database
Please login to merge, or discard this patch.
src/MShop/Service/Provider/Delivery/Xml.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,8 +155,7 @@
 block discarded – undo
155 155
 					$files[] = $entry->getPathname();
156 156
 				}
157 157
 			}
158
-		}
159
-		else
158
+		} else
160 159
 		{
161 160
 			$files[] = $location;
162 161
 		}
Please login to merge, or discard this patch.
src/MShop/Service/Provider/Payment/PayPalExpress.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -720,7 +720,7 @@
 block discarded – undo
720 720
 					$lastPos++;
721 721
 				}
722 722
 			}
723
-			catch( \Exception $e ) { ; } // If no delivery service is available
723
+			catch( \Exception $e ) {; } // If no delivery service is available
724 724
 		}
725 725
 
726 726
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -725,7 +725,9 @@
 block discarded – undo
725 725
 					$lastPos++;
726 726
 				}
727 727
 			}
728
-			catch( \Exception $e ) { ; } // If no delivery service is available
728
+			catch( \Exception $e )
729
+			{
730
+; } // If no delivery service is available
729 731
 		}
730 732
 
731 733
 
Please login to merge, or discard this patch.
src/MShop/Service/Provider/Payment/DirectDebit.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 				$feconfig['directdebit.accountowner']['default'] = $fn . ' ' . $ln;
82 82
 			}
83 83
 		}
84
-		catch( \Aimeos\MShop\Order\Exception $e ) { ; } // If address isn't available
84
+		catch( \Aimeos\MShop\Order\Exception $e ) {; } // If address isn't available
85 85
 
86 86
 		return $this->getConfigItems( $feconfig );
87 87
 	}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,9 @@
 block discarded – undo
81 81
 				$feconfig['directdebit.accountowner']['default'] = $fn . ' ' . $ln;
82 82
 			}
83 83
 		}
84
-		catch( \Aimeos\MShop\Order\Exception $e ) { ; } // If address isn't available
84
+		catch( \Aimeos\MShop\Order\Exception $e )
85
+		{
86
+; } // If address isn't available
85 87
 
86 88
 		return $this->getConfigItems( $feconfig );
87 89
 	}
Please login to merge, or discard this patch.
src/MShop/Service/Provider/Decorator/Country.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,8 +117,7 @@
 block discarded – undo
117 117
 					return false;
118 118
 				}
119 119
 			}
120
-		}
121
-		elseif( ( $addresses = $basket->getAddress( Address\Base::TYPE_PAYMENT ) ) !== [] )
120
+		} elseif( ( $addresses = $basket->getAddress( Address\Base::TYPE_PAYMENT ) ) !== [] )
122 121
 		{
123 122
 			// use billing address if no delivery address is available
124 123
 			foreach( $addresses as $address )
Please login to merge, or discard this patch.