Passed
Push — develop ( d3878a...248214 )
by Jens
02:17
created
src/images/Image.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             }
110 110
 
111 111
             if ($mimeTypeConstantValue == IMAGETYPE_PNG) {
112
-                return imagepng($imageResource, $path, ((int)($quality / 10) - 1));
112
+                return imagepng($imageResource, $path, ((int) ($quality / 10) - 1));
113 113
             }
114 114
 
115 115
             throw new \RuntimeException('Not a valid mimetypeconstant given see function documentation');
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
                 $g = hexdec($body[$iPos + 2] . $body[$iPos + 3]);
292 292
                 $b = hexdec($body[$iPos] . $body[$iPos + 1]);
293 293
                 //    Calculate and draw the pixel
294
-                $color = imagecolorallocate($image, (int)$r, (int)$g, (int)$b);
294
+                $color = imagecolorallocate($image, (int) $r, (int) $g, (int) $b);
295 295
                 imagesetpixel($image, $x, $height - $y, $color);
296 296
                 //    Raise the horizontal position
297 297
                 $x++;
Please login to merge, or discard this patch.