Code Duplication    Length = 9-10 lines in 4 locations

3rdparty/getID3/getid3/getid3.lib.php 1 location

@@ 1408-1417 (lines=10) @@
1405
	 *
1406
	 * @return string
1407
	 */
1408
	public static function RGADnameLookup($namecode) {
1409
		static $RGADname = array();
1410
		if (empty($RGADname)) {
1411
			$RGADname[0] = 'not set';
1412
			$RGADname[1] = 'Track Gain Adjustment';
1413
			$RGADname[2] = 'Album Gain Adjustment';
1414
		}
1415
1416
		return (isset($RGADname[$namecode]) ? $RGADname[$namecode] : '');
1417
	}
1418
1419
	/**
1420
	 * @param int $originatorcode

3rdparty/getID3/getid3/module.audio-video.asf.php 1 location

@@ 1604-1612 (lines=9) @@
1601
	 *
1602
	 * @return string
1603
	 */
1604
	public static function ASFIndexObjectIndexTypeLookup($id) {
1605
		static $ASFIndexObjectIndexTypeLookup = array();
1606
		if (empty($ASFIndexObjectIndexTypeLookup)) {
1607
			$ASFIndexObjectIndexTypeLookup[1] = 'Nearest Past Data Packet';
1608
			$ASFIndexObjectIndexTypeLookup[2] = 'Nearest Past Media Object';
1609
			$ASFIndexObjectIndexTypeLookup[3] = 'Nearest Past Cleanpoint';
1610
		}
1611
		return (isset($ASFIndexObjectIndexTypeLookup[$id]) ? $ASFIndexObjectIndexTypeLookup[$id] : 'invalid');
1612
	}
1613
1614
	/**
1615
	 * @param string $GUIDstring

3rdparty/getID3/getid3/module.audio-video.quicktime.php 1 location

@@ 2605-2613 (lines=9) @@
2602
	 *
2603
	 * @return string
2604
	 */
2605
	public function QuicktimeContentRatingLookup($rtng) {
2606
		static $QuicktimeContentRatingLookup = array();
2607
		if (empty($QuicktimeContentRatingLookup)) {
2608
			$QuicktimeContentRatingLookup[0]  = 'None';
2609
			$QuicktimeContentRatingLookup[2]  = 'Clean';
2610
			$QuicktimeContentRatingLookup[4]  = 'Explicit';
2611
		}
2612
		return (isset($QuicktimeContentRatingLookup[$rtng]) ? $QuicktimeContentRatingLookup[$rtng] : 'invalid');
2613
	}
2614
2615
	/**
2616
	 * @param int $akid

3rdparty/getID3/getid3/module.audio.ogg.php 1 location

@@ 833-841 (lines=9) @@
830
	 *
831
	 * @return string|null
832
	 */
833
	public static function SpeexBandModeLookup($mode) {
834
		static $SpeexBandModeLookup = array();
835
		if (empty($SpeexBandModeLookup)) {
836
			$SpeexBandModeLookup[0] = 'narrow';
837
			$SpeexBandModeLookup[1] = 'wide';
838
			$SpeexBandModeLookup[2] = 'ultra-wide';
839
		}
840
		return (isset($SpeexBandModeLookup[$mode]) ? $SpeexBandModeLookup[$mode] : null);
841
	}
842
843
	/**
844
	 * @param array $OggInfoArray