Code Duplication    Length = 9-10 lines in 4 locations

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

@@ 1399-1408 (lines=10) @@
1396
	 *
1397
	 * @return string
1398
	 */
1399
	public static function RGADnameLookup($namecode) {
1400
		static $RGADname = array();
1401
		if (empty($RGADname)) {
1402
			$RGADname[0] = 'not set';
1403
			$RGADname[1] = 'Track Gain Adjustment';
1404
			$RGADname[2] = 'Album Gain Adjustment';
1405
		}
1406
1407
		return (isset($RGADname[$namecode]) ? $RGADname[$namecode] : '');
1408
	}
1409
1410
	/**
1411
	 * @param int $originatorcode

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

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

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

@@ 2550-2558 (lines=9) @@
2547
	 *
2548
	 * @return string
2549
	 */
2550
	public function QuicktimeContentRatingLookup($rtng) {
2551
		static $QuicktimeContentRatingLookup = array();
2552
		if (empty($QuicktimeContentRatingLookup)) {
2553
			$QuicktimeContentRatingLookup[0]  = 'None';
2554
			$QuicktimeContentRatingLookup[2]  = 'Clean';
2555
			$QuicktimeContentRatingLookup[4]  = 'Explicit';
2556
		}
2557
		return (isset($QuicktimeContentRatingLookup[$rtng]) ? $QuicktimeContentRatingLookup[$rtng] : 'invalid');
2558
	}
2559
2560
	/**
2561
	 * @param int $akid

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

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