Code Duplication    Length = 8-9 lines in 2 locations

src/Output/QRImage.php 2 locations

@@ 75-83 (lines=9) @@
72
		ob_start();
73
74
		switch($this->options->type){
75
			case QRCode::OUTPUT_IMAGE_JPG:
76
				// @codeCoverageIgnoreStart
77
				imagejpeg(
78
					$image,
79
					$this->options->cachefile,
80
					in_array($this->options->jpegQuality, range(0, 100), true)
81
						? $this->options->jpegQuality
82
						: 85
83
				);
84
				break;
85
				// @codeCoverageIgnoreEnd
86
			case QRCode::OUTPUT_IMAGE_GIF: /** Actually, it's pronounced "DJIFF". *hides* */
@@ 93-100 (lines=8) @@
90
				);
91
				break;
92
			case QRCode::OUTPUT_IMAGE_PNG:
93
			default:
94
				imagepng(
95
					$image,
96
					$this->options->cachefile,
97
					in_array($this->options->pngCompression, range(-1, 9), true)
98
						? $this->options->pngCompression
99
						: -1
100
				);
101
		}
102
103
		$imageData = ob_get_contents();