Code Duplication    Length = 9-10 lines in 2 locations

src/Output/QRImage.php 2 locations

@@ 64-73 (lines=10) @@
61
	/**
62
	 * @param $image
63
	 */
64
	protected function png(&$image){
65
		imagepng(
66
			$image,
67
			$this->options->cachefile,
68
			in_array($this->options->pngCompression, range(-1, 9), true)
69
				? $this->options->pngCompression
70
				: -1
71
		);
72
73
	}
74
75
	/**
76
	 * Jiff - like... JitHub!
@@ 87-95 (lines=9) @@
84
	/**
85
	 * @param $image
86
	 */
87
	protected function jpg(&$image){
88
		imagejpeg(
89
			$image,
90
			$this->options->cachefile,
91
			in_array($this->options->jpegQuality, range(0, 100), true)
92
				? $this->options->jpegQuality
93
				: 85
94
		);
95
	}
96
97
}
98