@@ -11,7 +11,6 @@ |
||
11 | 11 | */ |
12 | 12 | |
13 | 13 | namespace chillerlan\QRCode\Output; |
14 | -use chillerlan\QRCode\Data\QRCodeDataException; |
|
15 | 14 | use chillerlan\QRCode\QRCode; |
16 | 15 | |
17 | 16 | /** |
@@ -49,7 +49,6 @@ discard block |
||
49 | 49 | if($this->options->type === QRCode::OUTPUT_STRING_JSON){ |
50 | 50 | return json_encode($this->matrix); |
51 | 51 | } |
52 | - |
|
53 | 52 | else if($this->options->type === QRCode::OUTPUT_STRING_TEXT){ |
54 | 53 | $text = ''; |
55 | 54 | |
@@ -65,7 +64,6 @@ discard block |
||
65 | 64 | |
66 | 65 | return $text; |
67 | 66 | } |
68 | - |
|
69 | 67 | else if($this->options->type === QRCode::OUTPUT_STRING_HTML){ |
70 | 68 | $html = ''; |
71 | 69 |
@@ -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(); |