Passed
Push — ImageManager ( 9c9f33 )
by Arnaud
05:05
created
src/Assets/Image.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.