Code Duplication    Length = 9-10 lines in 2 locations

src/Output/QRImage.php 2 locations

@@ 90-99 (lines=10) @@
87
	/**
88
	 * @param $image
89
	 */
90
	protected function png(&$image){
91
		imagepng(
92
			$image,
93
			$this->options->cachefile,
94
			in_array($this->options->pngCompression, range(-1, 9), true)
95
				? $this->options->pngCompression
96
				: -1
97
		);
98
99
	}
100
101
	/**
102
	 * Jiff - like... JitHub!
@@ 113-121 (lines=9) @@
110
	/**
111
	 * @param $image
112
	 */
113
	protected function jpg(&$image){
114
		imagejpeg(
115
			$image,
116
			$this->options->cachefile,
117
			in_array($this->options->jpegQuality, range(0, 100), true)
118
				? $this->options->jpegQuality
119
				: 85
120
		);
121
	}
122
123
}
124