Code Duplication    Length = 15-15 lines in 2 locations

view/SSTemplateParser.php 1 location

@@ 3276-3290 (lines=15) @@
3273
		$res['php'] = "'" . $sub['text'] . "' => ";
3274
	}
3275
3276
	function NamedArgument_Value(&$res, $sub) {
3277
		switch($sub['ArgumentMode']) {
3278
			case 'string':
3279
				$res['php'] .= $sub['php'];
3280
				break;
3281
3282
			case 'default':
3283
				$res['php'] .= $sub['string_php'];
3284
				break;
3285
3286
			default:
3287
				$res['php'] .= str_replace('$$FINAL', 'obj', $sub['php']) . '->self()';
3288
				break;
3289
		}
3290
	}
3291
3292
	/* Include: "<%" < "include" < Template:NamespacedWord < (NamedArgument ( < "," < NamedArgument )*)? > "%>" */
3293
	protected $match_Include_typestack = array('Include');

view/SSTemplateParser.php.inc 1 location

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