Code Duplication    Length = 10-10 lines in 2 locations

view/SSTemplateParser.php 2 locations

@@ 645-654 (lines=10) @@
642
643
	/* LastLookupStep: :Call */
644
	protected $match_LastLookupStep_typestack = array('LastLookupStep');
645
	function match_LastLookupStep ($stack = array()) {
646
		$matchrule = "LastLookupStep"; $result = $this->construct($matchrule, $matchrule, null);
647
		$matcher = 'match_'.'Call'; $key = $matcher; $pos = $this->pos;
648
		$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
649
		if ($subres !== FALSE) {
650
			$this->store( $result, $subres, "Call" );
651
			return $this->finalise($result);
652
		}
653
		else { return FALSE; }
654
	}
655
656
657
	/* Lookup: LookupStep ("." LookupStep)* "." LastLookupStep | LastLookupStep */
@@ 1063-1072 (lines=10) @@
1060
1061
	/* DollarMarkedLookup: SimpleInjection */
1062
	protected $match_DollarMarkedLookup_typestack = array('DollarMarkedLookup');
1063
	function match_DollarMarkedLookup ($stack = array()) {
1064
		$matchrule = "DollarMarkedLookup"; $result = $this->construct($matchrule, $matchrule, null);
1065
		$matcher = 'match_'.'SimpleInjection'; $key = $matcher; $pos = $this->pos;
1066
		$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
1067
		if ($subres !== FALSE) {
1068
			$this->store( $result, $subres );
1069
			return $this->finalise($result);
1070
		}
1071
		else { return FALSE; }
1072
	}
1073
1074
1075