Code Duplication    Length = 1-1 lines in 2 locations

view/SSTemplateParser.php 1 location

@@ 967-967 (lines=1) @@
964
	}
965
966
	function InjectionVariables__finalise(&$res) {
967
		if (substr($res['php'], -1) == ',') $res['php'] = substr($res['php'], 0, -1); //remove last comma in the array
968
		$res['php'] .= ')';
969
	}
970

view/SSTemplateParser.php.inc 1 location

@@ 354-354 (lines=1) @@
351
	}
352
353
	function InjectionVariables__finalise(&$res) {
354
		if (substr($res['php'], -1) == ',') $res['php'] = substr($res['php'], 0, -1); //remove last comma in the array
355
		$res['php'] .= ')';
356
	}
357