Code Duplication    Length = 1-1 lines in 2 locations

view/SSTemplateParser.php 1 location

@@ 979-979 (lines=1) @@
976
	}
977
978
	function InjectionVariables__finalise(&$res) {
979
		if (substr($res['php'], -1) == ',') $res['php'] = substr($res['php'], 0, -1); //remove last comma in the array
980
		$res['php'] .= ')';
981
	}
982

view/SSTemplateParser.php.inc 1 location

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