Code Duplication    Length = 26-29 lines in 2 locations

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

@@ 426-451 (lines=26) @@
423
		return (isset($lookup[$applicationid]) ? $lookup[$applicationid] : 'reserved');
424
	}
425
426
	public static function pictureTypeLookup($type_id) {
427
		static $lookup = array (
428
			 0 => 'Other',
429
			 1 => '32x32 pixels \'file icon\' (PNG only)',
430
			 2 => 'Other file icon',
431
			 3 => 'Cover (front)',
432
			 4 => 'Cover (back)',
433
			 5 => 'Leaflet page',
434
			 6 => 'Media (e.g. label side of CD)',
435
			 7 => 'Lead artist/lead performer/soloist',
436
			 8 => 'Artist/performer',
437
			 9 => 'Conductor',
438
			10 => 'Band/Orchestra',
439
			11 => 'Composer',
440
			12 => 'Lyricist/text writer',
441
			13 => 'Recording Location',
442
			14 => 'During recording',
443
			15 => 'During performance',
444
			16 => 'Movie/video screen capture',
445
			17 => 'A bright coloured fish',
446
			18 => 'Illustration',
447
			19 => 'Band/artist logotype',
448
			20 => 'Publisher/Studio logotype',
449
		);
450
		return (isset($lookup[$type_id]) ? $lookup[$type_id] : 'reserved');
451
	}
452
453
}
454

src/wp-includes/ID3/module.tag.id3v2.php 1 location

@@ 3114-3142 (lines=29) @@
3111
		return (isset($SYTLContentTypeLookup[$index]) ? $SYTLContentTypeLookup[$index] : '');
3112
	}
3113
3114
	public static function APICPictureTypeLookup($index, $returnarray=false) {
3115
		static $APICPictureTypeLookup = array(
3116
			0x00 => 'Other',
3117
			0x01 => '32x32 pixels \'file icon\' (PNG only)',
3118
			0x02 => 'Other file icon',
3119
			0x03 => 'Cover (front)',
3120
			0x04 => 'Cover (back)',
3121
			0x05 => 'Leaflet page',
3122
			0x06 => 'Media (e.g. label side of CD)',
3123
			0x07 => 'Lead artist/lead performer/soloist',
3124
			0x08 => 'Artist/performer',
3125
			0x09 => 'Conductor',
3126
			0x0A => 'Band/Orchestra',
3127
			0x0B => 'Composer',
3128
			0x0C => 'Lyricist/text writer',
3129
			0x0D => 'Recording Location',
3130
			0x0E => 'During recording',
3131
			0x0F => 'During performance',
3132
			0x10 => 'Movie/video screen capture',
3133
			0x11 => 'A bright coloured fish',
3134
			0x12 => 'Illustration',
3135
			0x13 => 'Band/artist logotype',
3136
			0x14 => 'Publisher/Studio logotype'
3137
		);
3138
		if ($returnarray) {
3139
			return $APICPictureTypeLookup;
3140
		}
3141
		return (isset($APICPictureTypeLookup[$index]) ? $APICPictureTypeLookup[$index] : '');
3142
	}
3143
3144
	public static function COMRReceivedAsLookup($index) {
3145
		static $COMRReceivedAsLookup = array(