Passed
Push — master ( e7fbd1...801d58 )
by Aimeos
14:45
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 1 patch
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.
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.
src/MShop/Service/Provider/Decorator/Quantity.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,8 +98,7 @@
 block discarded – undo
98 98
 				foreach( $products as $prodItem ) { // calculate bundled products
99 99
 					$sum += $qty * $prodItem->getQuantity();
100 100
 				}
101
-			}
102
-			else
101
+			} else
103 102
 			{
104 103
 				$sum += $qty;
105 104
 			}
Please login to merge, or discard this patch.
src/MShop/Service/Provider/Decorator/Supplier.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,9 @@
 block discarded – undo
172 172
 				$feconfig['supplier.code']['default'] = [$value => $address] + $feconfig['supplier.code']['default'];
173 173
 			}
174 174
 		}
175
-		catch( \Aimeos\MShop\Service\Exception $e ) {} // If service isn't available
175
+		catch( \Aimeos\MShop\Service\Exception $e )
176
+		{
177
+} // If service isn't available
176 178
 
177 179
 		return array_merge( $this->getProvider()->getConfigFE( $basket ), $this->getConfigItems( $feconfig ) );
178 180
 	}
Please login to merge, or discard this patch.
src/MShop/Service/Provider/Decorator/Time.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,9 @@
 block discarded – undo
114 114
 				$feconfig['time.hourminute']['default'] = $value;
115 115
 			}
116 116
 		}
117
-		catch( \Aimeos\MShop\Service\Exception $e ) {} // If service isn't available
117
+		catch( \Aimeos\MShop\Service\Exception $e )
118
+		{
119
+} // If service isn't available
118 120
 
119 121
 		return array_merge( $this->getProvider()->getConfigFE( $basket ), $this->getConfigItems( $feconfig ) );
120 122
 	}
Please login to merge, or discard this patch.