Passed
Push — master ( c9773b...29143b )
by Aimeos
05:44
created
lib/mshoplib/src/MShop/Service/Provider/Decorator/Date.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,9 @@
 block discarded – undo
97 97
 				$feconfig['date.value']['default'] = $value;
98 98
 			}
99 99
 		}
100
-		catch( \Aimeos\MShop\Service\Exception $e ) {} // If service isn't available
100
+		catch( \Aimeos\MShop\Service\Exception $e )
101
+		{
102
+} // If service isn't available
101 103
 
102 104
 		return array_merge( $this->getProvider()->getConfigFE( $basket ), $this->getConfigItems( $feconfig ) );
103 105
 	}
Please login to merge, or discard this patch.
lib/mshoplib/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.
lib/mwlib/src/MW/Media/Image/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -176,8 +176,7 @@  discard block
 block discarded – undo
176 176
 			if( $w <= $newWidth && $h <= $newHeight ) {
177 177
 				return $this;
178 178
 			}
179
-		}
180
-		elseif( $width && $height )
179
+		} elseif( $width && $height )
181 180
 		{
182 181
 			$ratio = ( $w < $h ? $width / $w : $height / $h );
183 182
 			$newHeight = (int) $h * $ratio;
@@ -224,8 +223,7 @@  discard block
 block discarded – undo
224 223
 
225 224
 			imagedestroy( $result );
226 225
 			$newMedia->image = $newImage;
227
-		}
228
-		else
226
+		} else
229 227
 		{
230 228
 			$newMedia->image = $result;
231 229
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/OrderMigrateTaxrate.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@  discard block
 block discarded – undo
83 83
 			$this->release( $conn, $dbdomain );
84 84
 
85 85
 			$this->status( 'done' );
86
-		}
87
-		else
86
+		} else
88 87
 		{
89 88
 			$this->status( 'OK' );
90 89
 		}
@@ -129,8 +128,7 @@  discard block
 block discarded – undo
129 128
 			$this->release( $conn, $dbdomain );
130 129
 
131 130
 			$this->status( 'done' );
132
-		}
133
-		else
131
+		} else
134 132
 		{
135 133
 			$this->status( 'OK' );
136 134
 		}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Provider/Payment/PayPalExpress.php 2 patches
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.
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.
lib/mshoplib/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.
lib/mshoplib/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.
lib/mwlib/src/MW/Translation/SerializedArray.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,9 @@  discard block
 block discarded – undo
75 75
 				}
76 76
 			}
77 77
 		}
78
-		catch( \Exception $e ) {; } // no translation found
78
+		catch( \Exception $e )
79
+		{
80
+; } // no translation found
79 81
 
80 82
 		return (string) $string;
81 83
 	}
@@ -104,7 +106,9 @@  discard block
 block discarded – undo
104 106
 				}
105 107
 			}
106 108
 		}
107
-		catch( \Exception $e ) {; } // no translation found
109
+		catch( \Exception $e )
110
+		{
111
+; } // no translation found
108 112
 
109 113
 		if( $index > 0 ) {
110 114
 			return (string) $plural;
Please login to merge, or discard this patch.
lib/mshoplib/setup/IndexPrepareSimplePrice.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
 		) {
50 50
 			$this->execute( 'DELETE FROM "mshop_index_price"' );
51 51
 			$this->status( 'done' );
52
-		}
53
-		else
52
+		} else
54 53
 		{
55 54
 			$this->status( 'OK' );
56 55
 		}
Please login to merge, or discard this patch.