Code Duplication    Length = 14-14 lines in 2 locations

view/SSTemplateParser.php 1 location

@@ 3381-3394 (lines=14) @@
3378
		$res['arguments'][] = $sub['php'];
3379
	}
3380
3381
	function Include__finalise(&$res){
3382
		$template = $res['template'];
3383
		$arguments = $res['arguments'];
3384
3385
		$res['php'] = '$val .= SSViewer::execute_template('.$template.', $scope->getItem(), array(' . 
3386
			implode(',', $arguments)."), \$scope);\n";
3387
3388
		if($this->includeDebuggingComments) { // Add include filename comments on dev sites
3389
			$res['php'] =
3390
				'$val .= \'<!-- include '.addslashes($template).' -->\';'. "\n".
3391
				$res['php'].
3392
				'$val .= \'<!-- end include '.addslashes($template).' -->\';'. "\n";
3393
		}
3394
	}
3395
3396
	/* BlockArguments: :Argument ( < "," < :Argument)*  */
3397
	protected $match_BlockArguments_typestack = array('BlockArguments');

view/SSTemplateParser.php.inc 1 location

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