Code Duplication    Length = 14-14 lines in 2 locations

view/SSTemplateParser.php 1 location

@@ 3369-3382 (lines=14) @@
3366
		$res['arguments'][] = $sub['php'];
3367
	}
3368
3369
	function Include__finalise(&$res){
3370
		$template = $res['template'];
3371
		$arguments = $res['arguments'];
3372
3373
		$res['php'] = '$val .= SSViewer::execute_template('.$template.', $scope->getItem(), array(' .
3374
			implode(',', $arguments)."), \$scope);\n";
3375
3376
		if($this->includeDebuggingComments) { // Add include filename comments on dev sites
3377
			$res['php'] =
3378
				'$val .= \'<!-- include '.addslashes($template).' -->\';'. "\n".
3379
				$res['php'].
3380
				'$val .= \'<!-- end include '.addslashes($template).' -->\';'. "\n";
3381
		}
3382
	}
3383
3384
	/* BlockArguments: :Argument ( < "," < :Argument)*  */
3385
	protected $match_BlockArguments_typestack = array('BlockArguments');

view/SSTemplateParser.php.inc 1 location

@@ 828-841 (lines=14) @@
825
		$res['arguments'][] = $sub['php'];
826
	}
827
828
	function Include__finalise(&$res){
829
		$template = $res['template'];
830
		$arguments = $res['arguments'];
831
832
		$res['php'] = '$val .= SSViewer::execute_template('.$template.', $scope->getItem(), array(' .
833
			implode(',', $arguments)."), \$scope);\n";
834
835
		if($this->includeDebuggingComments) { // Add include filename comments on dev sites
836
			$res['php'] =
837
				'$val .= \'<!-- include '.addslashes($template).' -->\';'. "\n".
838
				$res['php'].
839
				'$val .= \'<!-- end include '.addslashes($template).' -->\';'. "\n";
840
		}
841
	}
842
843
	/*!*
844