@@ -50,8 +50,7 @@ discard block |
||
50 | 50 | { |
51 | 51 | $this->image->setImageAlphaChannel( \Imagick::ALPHACHANNEL_ACTIVATE ); |
52 | 52 | $this->image->setImageBackgroundColor( $options['image']['background'] ?? 'transparent' ); |
53 | - } |
|
54 | - else |
|
53 | + } else |
|
55 | 54 | { |
56 | 55 | $this->image->setImageBackgroundColor( $options['image']['background'] ?? '#ffffff' ); |
57 | 56 | } |
@@ -174,8 +173,7 @@ discard block |
||
174 | 173 | $newMedia->image->cropThumbnailImage( (int) $width, (int) $height ); |
175 | 174 | // see https://www.php.net/manual/en/imagick.cropthumbnailimage.php#106710 |
176 | 175 | $newMedia->image->setImagePage( 0, 0, 0, 0 ); |
177 | - } |
|
178 | - elseif( $fit === 1 && $width && $height ) |
|
176 | + } elseif( $fit === 1 && $width && $height ) |
|
179 | 177 | { |
180 | 178 | $this->resize( $newMedia, $width, $height ); |
181 | 179 | |
@@ -183,8 +181,7 @@ discard block |
||
183 | 181 | $h = ( $height - $newMedia->image->getImageHeight() ) / 2; |
184 | 182 | |
185 | 183 | $newMedia->image->extentImage( $width, $height, (int) -$w, (int) -$h ); |
186 | - } |
|
187 | - else |
|
184 | + } else |
|
188 | 185 | { |
189 | 186 | $this->resize( $newMedia, $width, $height ); |
190 | 187 | } |
@@ -287,8 +284,7 @@ discard block |
||
287 | 284 | $wmimage = clone self::$wmimg; |
288 | 285 | $wmimage->resizeImage( $ww, $wh, \Imagick::FILTER_CUBIC, 0.8 ); |
289 | 286 | self::$wmimages[$ww . 'x' . $wh] = $wmimage; |
290 | - } |
|
291 | - else |
|
287 | + } else |
|
292 | 288 | { |
293 | 289 | $wmimage = self::$wmimages[$ww . 'x' . $wh]; |
294 | 290 | } |