Code Duplication    Length = 9-10 lines in 2 locations

src/Output/QRImage.php 2 locations

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