Code Duplication    Length = 10-11 lines in 2 locations

htdocs/modules/system/class/thumbs/phpthumb.bmp.php 2 locations

@@ 770-780 (lines=11) @@
767
		return true;
768
	}
769
770
	function BMPcompressionWindowsLookup($compressionid) {
771
		static $BMPcompressionWindowsLookup = array(
772
			0 => 'BI_RGB',
773
			1 => 'BI_RLE8',
774
			2 => 'BI_RLE4',
775
			3 => 'BI_BITFIELDS',
776
			4 => 'BI_JPEG',
777
			5 => 'BI_PNG'
778
		);
779
		return (isset($BMPcompressionWindowsLookup[$compressionid]) ? $BMPcompressionWindowsLookup[$compressionid] : 'invalid');
780
	}
781
782
	function BMPcompressionOS2Lookup($compressionid) {
783
		static $BMPcompressionOS2Lookup = array(
@@ 782-791 (lines=10) @@
779
		return (isset($BMPcompressionWindowsLookup[$compressionid]) ? $BMPcompressionWindowsLookup[$compressionid] : 'invalid');
780
	}
781
782
	function BMPcompressionOS2Lookup($compressionid) {
783
		static $BMPcompressionOS2Lookup = array(
784
			0 => 'BI_RGB',
785
			1 => 'BI_RLE8',
786
			2 => 'BI_RLE4',
787
			3 => 'Huffman 1D',
788
			4 => 'BI_RLE24',
789
		);
790
		return (isset($BMPcompressionOS2Lookup[$compressionid]) ? $BMPcompressionOS2Lookup[$compressionid] : 'invalid');
791
	}
792
793
794
	// from getid3.lib.php