Code Duplication    Length = 13-15 lines in 4 locations

src/wp-includes/ID3/module.audio.mp3.php 1 location

@@ 1925-1937 (lines=13) @@
1922
		return (isset($LAMEvbrMethodLookup[$VBRmethodID]) ? $LAMEvbrMethodLookup[$VBRmethodID] : '');
1923
	}
1924
1925
	public static function LAMEmiscStereoModeLookup($StereoModeID) {
1926
		static $LAMEmiscStereoModeLookup = array(
1927
			0 => 'mono',
1928
			1 => 'stereo',
1929
			2 => 'dual mono',
1930
			3 => 'joint stereo',
1931
			4 => 'forced stereo',
1932
			5 => 'auto',
1933
			6 => 'intensity stereo',
1934
			7 => 'other'
1935
		);
1936
		return (isset($LAMEmiscStereoModeLookup[$StereoModeID]) ? $LAMEmiscStereoModeLookup[$StereoModeID] : '');
1937
	}
1938
1939
	public static function LAMEmiscSourceSampleFrequencyLookup($SourceSampleFrequencyID) {
1940
		static $LAMEmiscSourceSampleFrequencyLookup = array(

src/wp-includes/ID3/module.tag.id3v2.php 3 locations

@@ 3098-3112 (lines=15) @@
3095
		return (isset($EventLookup[$index]) ? $EventLookup[$index] : '');
3096
	}
3097
3098
	public static function SYTLContentTypeLookup($index) {
3099
		static $SYTLContentTypeLookup = array(
3100
			0x00 => 'other',
3101
			0x01 => 'lyrics',
3102
			0x02 => 'text transcription',
3103
			0x03 => 'movement/part name', // (e.g. 'Adagio')
3104
			0x04 => 'events',             // (e.g. 'Don Quijote enters the stage')
3105
			0x05 => 'chord',              // (e.g. 'Bb F Fsus')
3106
			0x06 => 'trivia/\'pop up\' information',
3107
			0x07 => 'URLs to webpages',
3108
			0x08 => 'URLs to images'
3109
		);
3110
3111
		return (isset($SYTLContentTypeLookup[$index]) ? $SYTLContentTypeLookup[$index] : '');
3112
	}
3113
3114
	public static function APICPictureTypeLookup($index, $returnarray=false) {
3115
		static $APICPictureTypeLookup = array(
@@ 3144-3158 (lines=15) @@
3141
		return (isset($APICPictureTypeLookup[$index]) ? $APICPictureTypeLookup[$index] : '');
3142
	}
3143
3144
	public static function COMRReceivedAsLookup($index) {
3145
		static $COMRReceivedAsLookup = array(
3146
			0x00 => 'Other',
3147
			0x01 => 'Standard CD album with other songs',
3148
			0x02 => 'Compressed audio on CD',
3149
			0x03 => 'File over the Internet',
3150
			0x04 => 'Stream over the Internet',
3151
			0x05 => 'As note sheets',
3152
			0x06 => 'As note sheets in a book with other sheets',
3153
			0x07 => 'Music on other media',
3154
			0x08 => 'Non-musical merchandise'
3155
		);
3156
3157
		return (isset($COMRReceivedAsLookup[$index]) ? $COMRReceivedAsLookup[$index] : '');
3158
	}
3159
3160
	public static function RVA2ChannelTypeLookup($index) {
3161
		static $RVA2ChannelTypeLookup = array(
@@ 3160-3174 (lines=15) @@
3157
		return (isset($COMRReceivedAsLookup[$index]) ? $COMRReceivedAsLookup[$index] : '');
3158
	}
3159
3160
	public static function RVA2ChannelTypeLookup($index) {
3161
		static $RVA2ChannelTypeLookup = array(
3162
			0x00 => 'Other',
3163
			0x01 => 'Master volume',
3164
			0x02 => 'Front right',
3165
			0x03 => 'Front left',
3166
			0x04 => 'Back right',
3167
			0x05 => 'Back left',
3168
			0x06 => 'Front centre',
3169
			0x07 => 'Back centre',
3170
			0x08 => 'Subwoofer'
3171
		);
3172
3173
		return (isset($RVA2ChannelTypeLookup[$index]) ? $RVA2ChannelTypeLookup[$index] : '');
3174
	}
3175
3176
	public static function FrameNameLongLookup($framename) {
3177