Code Duplication    Length = 8-9 lines in 2 locations

src/Output/QRImage.php 2 locations

@@ 83-91 (lines=9) @@
80
		ob_start();
81
82
		switch($this->options->type){
83
			case QRCode::OUTPUT_IMAGE_JPG:
84
				imagejpeg(
85
					$image,
86
					$this->options->cachefile,
87
					in_array($this->options->jpegQuality, range(0, 100), true)
88
						? $this->options->jpegQuality
89
						: 85
90
				);
91
				break;
92
			case QRCode::OUTPUT_IMAGE_GIF: /** Actually, it's pronounced "DJIFF". *hides* */
93
				imagegif(
94
					$image,
@@ 99-106 (lines=8) @@
96
				);
97
				break;
98
			case QRCode::OUTPUT_IMAGE_PNG:
99
			default:
100
				imagepng(
101
					$image,
102
					$this->options->cachefile,
103
					in_array($this->options->pngCompression, range(-1, 9), true)
104
						? $this->options->pngCompression
105
						: -1
106
				);
107
		}
108
109
		$imageData = ob_get_contents();