@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | // resizes to $width with constraint the aspect-ratio and unwanted upsizing |
52 | 52 | $image->scaleDown(width: $width); |
53 | 53 | // return image data |
54 | - return (string)$image->encodeByMediaType($asset['subtype'], progressive: true, interlaced: true, quality: $quality); |
|
54 | + return (string) $image->encodeByMediaType($asset['subtype'], progressive: true, interlaced: true, quality: $quality); |
|
55 | 55 | } catch (\Exception $e) { |
56 | 56 | throw new RuntimeException(sprintf('Not able to resize "%s": %s', $asset['path'], $e->getMessage())); |
57 | 57 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | $image = self::manager()->read($asset['content']); |
72 | 72 | |
73 | - return (string)$image->encodeByExtension($format, progressive: true, interlaced: true, quality: $quality); |
|
73 | + return (string) $image->encodeByExtension($format, progressive: true, interlaced: true, quality: $quality); |
|
74 | 74 | } catch (\Exception $e) { |
75 | 75 | throw new RuntimeException(sprintf('Not able to convert "%s": %s', $asset['path'], $e->getMessage())); |
76 | 76 | } |