@@ -77,8 +77,8 @@ discard block |
||
77 | 77 | foreach($row as $c => $pixel){ |
78 | 78 | if($pixel){ |
79 | 79 | imagefilledrectangle($image, |
80 | - $this->options->marginSize + $c * $this->options->pixelSize, |
|
81 | - $this->options->marginSize + $r * $this->options->pixelSize, |
|
80 | + $this->options->marginSize + $c * $this->options->pixelSize, |
|
81 | + $this->options->marginSize + $r * $this->options->pixelSize, |
|
82 | 82 | $this->options->marginSize + ($c + 1) * $this->options->pixelSize - 1, |
83 | 83 | $this->options->marginSize + ($r + 1) * $this->options->pixelSize - 1, |
84 | 84 | $foreground); |
@@ -89,9 +89,9 @@ discard block |
||
89 | 89 | ob_start(); |
90 | 90 | |
91 | 91 | switch($this->options->type){ |
92 | - case QRCode::OUTPUT_IMAGE_PNG: imagepng ($image, $this->options->cachefile, (int)$this->options->pngCompression); break; |
|
92 | + case QRCode::OUTPUT_IMAGE_PNG: imagepng($image, $this->options->cachefile, (int)$this->options->pngCompression); break; |
|
93 | 93 | case QRCode::OUTPUT_IMAGE_JPG: imagejpeg($image, $this->options->cachefile, (int)$this->options->jpegQuality); break; |
94 | - case QRCode::OUTPUT_IMAGE_GIF: imagegif ($image, $this->options->cachefile); break; /** Actually, it's pronounced "DJIFF". *hides* */ |
|
94 | + case QRCode::OUTPUT_IMAGE_GIF: imagegif($image, $this->options->cachefile); break; /** Actually, it's pronounced "DJIFF". *hides* */ |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | $imageData = ob_get_contents(); |