@@ -672,7 +672,7 @@ |
||
672 | 672 | |
673 | 673 | try { |
674 | 674 | $stmt->execute()->finish(); |
675 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
675 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
676 | 676 | } |
677 | 677 | } |
678 | 678 | } |
@@ -670,9 +670,13 @@ |
||
670 | 670 | $stmt->bind( 4, $date ); // mtime |
671 | 671 | $stmt->bind( 5, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
672 | 672 | |
673 | - try { |
|
673 | + try |
|
674 | + { |
|
674 | 675 | $stmt->execute()->finish(); |
675 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
676 | + } |
|
677 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
678 | + { |
|
679 | +; } // Ignore duplicates |
|
676 | 680 | } |
677 | 681 | } |
678 | 682 | } |
@@ -158,8 +158,7 @@ |
||
158 | 158 | |
159 | 159 | $this->execute( sprintf( 'ALTER TABLE "%1$s" CONVERT TO CHARACTER SET \'utf8mb4\' COLLATE \'utf8mb4_bin\'', $table ), $rname ); |
160 | 160 | $this->status( 'done' ); |
161 | - } |
|
162 | - else |
|
161 | + } else |
|
163 | 162 | { |
164 | 163 | $this->status( 'OK' ); |
165 | 164 | } |
@@ -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 |