Code Duplication    Length = 8-10 lines in 3 locations

view/SSTemplateParser.php 3 locations

@@ 781-790 (lines=10) @@
778
			$res_97 = $result;
779
			$pos_97 = $this->pos;
780
			$_96 = NULL;
781
			do {
782
				$matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos;
783
				$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
784
				if ($subres !== FALSE) {
785
					$this->store( $result, $subres, "Default" );
786
				}
787
				else { $_96 = FALSE; break; }
788
				$_96 = TRUE; break;
789
			}
790
			while(0);
791
			if( $_96 === FALSE) {
792
				$result = $res_97;
793
				$this->pos = $pos_97;
@@ 848-855 (lines=8) @@
845
			$res_112 = $result;
846
			$pos_112 = $this->pos;
847
			$_111 = NULL;
848
			do {
849
				$matcher = 'match_'.'InjectionVariables'; $key = $matcher; $pos = $this->pos;
850
				$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
851
				if ($subres !== FALSE) { $this->store( $result, $subres ); }
852
				else { $_111 = FALSE; break; }
853
				$_111 = TRUE; break;
854
			}
855
			while(0);
856
			if( $_111 === FALSE) {
857
				$result = $res_112;
858
				$this->pos = $pos_112;
@@ 2729-2736 (lines=8) @@
2726
			$res_449 = $result;
2727
			$pos_449 = $this->pos;
2728
			$_448 = NULL;
2729
			do {
2730
				$matcher = 'match_'.'CacheBlockArguments'; $key = $matcher; $pos = $this->pos;
2731
				$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
2732
				if ($subres !== FALSE) { $this->store( $result, $subres ); }
2733
				else { $_448 = FALSE; break; }
2734
				$_448 = TRUE; break;
2735
			}
2736
			while(0);
2737
			if( $_448 === FALSE) {
2738
				$result = $res_449;
2739
				$this->pos = $pos_449;