@@ -114,7 +114,9 @@ |
||
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 | } |
@@ -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 | } |
@@ -164,8 +164,7 @@ |
||
164 | 164 | $newMedia->image->cropThumbnailImage( (int) $width, (int) $height ); |
165 | 165 | // see https://www.php.net/manual/en/imagick.cropthumbnailimage.php#106710 |
166 | 166 | $newMedia->image->setImagePage( 0, 0, 0, 0 ); |
167 | - } |
|
168 | - else |
|
167 | + } else |
|
169 | 168 | { |
170 | 169 | $newMedia->image->resizeImage( $width, $height, \Imagick::FILTER_CUBIC, 0.8 ); |
171 | 170 | } |
@@ -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 | } |
@@ -264,8 +264,7 @@ |
||
264 | 264 | */ |
265 | 265 | $path = 'mshop/text/manager/standard/insert'; |
266 | 266 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
267 | - } |
|
268 | - else |
|
267 | + } else |
|
269 | 268 | { |
270 | 269 | /** mshop/text/manager/standard/update/mysql |
271 | 270 | * Updates an existing text record in the database |