Code Duplication    Length = 15-15 lines in 2 locations

view/SSTemplateParser.php 1 location

@@ 3264-3278 (lines=15) @@
3261
		$res['php'] = "'" . $sub['text'] . "' => ";
3262
	}
3263
3264
	function NamedArgument_Value(&$res, $sub) {
3265
		switch($sub['ArgumentMode']) {
3266
			case 'string':
3267
				$res['php'] .= $sub['php'];
3268
				break;
3269
3270
			case 'default':
3271
				$res['php'] .= $sub['string_php'];
3272
				break;
3273
3274
			default:
3275
				$res['php'] .= str_replace('$$FINAL', 'obj', $sub['php']) . '->self()';
3276
				break;
3277
		}
3278
	}
3279
3280
	/* Include: "<%" < "include" < Template:Word < (NamedArgument ( < "," < NamedArgument )*)? > "%>" */
3281
	protected $match_Include_typestack = array('Include');

view/SSTemplateParser.php.inc 1 location

@@ 793-807 (lines=15) @@
790
		$res['php'] = "'" . $sub['text'] . "' => ";
791
	}
792
793
	function NamedArgument_Value(&$res, $sub) {
794
		switch($sub['ArgumentMode']) {
795
			case 'string':
796
				$res['php'] .= $sub['php'];
797
				break;
798
799
			case 'default':
800
				$res['php'] .= $sub['string_php'];
801
				break;
802
803
			default:
804
				$res['php'] .= str_replace('$$FINAL', 'obj', $sub['php']) . '->self()';
805
				break;
806
		}
807
	}
808
809
	/*!*
810