@@ -97,7 +97,9 @@ |
||
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 | } |
@@ -172,7 +172,9 @@ |
||
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 | } |
@@ -176,8 +176,7 @@ discard block |
||
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 |
||
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 | } |
@@ -83,8 +83,7 @@ discard block |
||
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 |
||
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 | } |
@@ -725,7 +725,9 @@ |
||
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 |
@@ -720,7 +720,7 @@ |
||
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 |
@@ -129,7 +129,9 @@ |
||
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 | } |
@@ -155,8 +155,7 @@ |
||
155 | 155 | $files[] = $entry->getPathname(); |
156 | 156 | } |
157 | 157 | } |
158 | - } |
|
159 | - else |
|
158 | + } else |
|
160 | 159 | { |
161 | 160 | $files[] = $location; |
162 | 161 | } |
@@ -75,7 +75,9 @@ discard block |
||
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 |
||
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; |
@@ -49,8 +49,7 @@ |
||
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 | } |