@@ -109,7 +109,7 @@ discard block |
||
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 |
||
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++; |