Completed
Push — master ( 1a2d4b...99084f )
by smiley
03:12
created
src/Output/QRString.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
Braces   -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Output/QRImage.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.