Code Duplication    Length = 8-8 lines in 6 locations

kernel/mimetypes.php 6 locations

@@ 87-94 (lines=8) @@
84
		return $this->getVar('mime_id');
85
	}
86
87
	function mime_ext($format='S') {
88
		$ret = $this->getVar('mime_ext', $format);
89
		if (($format=='s') || ($format=='S') || ($format=='show')) {
90
			$myts = &MyTextSanitizer::getInstance();
91
			$ret = $myts->displayTarea($ret);
92
		}
93
		return $ret;
94
	}
95
96
	function mime_types($format='S') {
97
		$ret = $this->getVar('mime_types', $format);
@@ 96-103 (lines=8) @@
93
		return $ret;
94
	}
95
96
	function mime_types($format='S') {
97
		$ret = $this->getVar('mime_types', $format);
98
		if (($format=='s') || ($format=='S') || ($format=='show')) {
99
			$myts = &MyTextSanitizer::getInstance();
100
			$ret = $myts->displayTarea($ret);
101
		}
102
		return $ret;
103
	}
104
105
	function mime_name($format='S') {
106
		$ret = $this->getVar('mime_name', $format);
@@ 105-112 (lines=8) @@
102
		return $ret;
103
	}
104
105
	function mime_name($format='S') {
106
		$ret = $this->getVar('mime_name', $format);
107
		if (($format=='s') || ($format=='S') || ($format=='show')) {
108
			$myts = &MyTextSanitizer::getInstance();
109
			$ret = $myts->displayTarea($ret);
110
		}
111
		return $ret;
112
	}
113
114
	function mime_status() {
115
		return $this->getVar('mime_status');
@@ 421-428 (lines=8) @@
418
		return $this->getVar('mperm_module');
419
	}
420
421
	function mime_ext($format='S') {
422
		$ret = $this->getVar('mime_ext', $format);
423
		if (($format=='s') || ($format=='S') || ($format=='show')) {
424
			$myts = &MyTextSanitizer::getInstance();
425
			$ret = $myts->displayTarea($ret);
426
		}
427
		return $ret;
428
	}
429
430
	function mime_module($format='S') {
431
		$ret = $this->getVar('name', $format);
@@ 430-437 (lines=8) @@
427
		return $ret;
428
	}
429
430
	function mime_module($format='S') {
431
		$ret = $this->getVar('name', $format);
432
		if (($format=='s') || ($format=='S') || ($format=='show')) {
433
			$myts = &MyTextSanitizer::getInstance();
434
			$ret = $myts->displayTarea($ret);
435
		}
436
		return $ret;
437
	}
438
439
	function mime_name($format='S') {
440
		$ret = $this->getVar('mime_name', $format);
@@ 439-446 (lines=8) @@
436
		return $ret;
437
	}
438
439
	function mime_name($format='S') {
440
		$ret = $this->getVar('mime_name', $format);
441
		if (($format=='s') || ($format=='S') || ($format=='show')) {
442
			$myts = &MyTextSanitizer::getInstance();
443
			$ret = $myts->displayTarea($ret);
444
		}
445
		return $ret;
446
	}
447
448
	function mime_groups() {
449
		return $this->getVar('mperm_groups');