Passed
Push — develop ( 248214...0e2af0 )
by Jens
02:30
created
src/images/BitmapFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
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++;
Please login to merge, or discard this patch.
src/images/Image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 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');
Please login to merge, or discard this patch.