@@ -108,7 +108,7 @@ |
||
108 | 108 | $g = hexdec($bitmapBodyModel->body[$iPos + 2] . $bitmapBodyModel->body[$iPos + 3]); |
109 | 109 | $b = hexdec($bitmapBodyModel->body[$iPos] . $bitmapBodyModel->body[$iPos + 1]); |
110 | 110 | // Calculate and draw the pixel |
111 | - $color = imagecolorallocate($bitmapBodyModel->image, (int)$r, (int)$g, (int)$b); |
|
111 | + $color = imagecolorallocate($bitmapBodyModel->image, (int) $r, (int) $g, (int) $b); |
|
112 | 112 | imagesetpixel($bitmapBodyModel->image, $bitmapBodyModel->x, $bitmapBodyModel->height - $bitmapBodyModel->y, $color); |
113 | 113 | // Raise the horizontal position |
114 | 114 | $bitmapBodyModel->x++; |
@@ -109,7 +109,7 @@ |
||
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'); |