Code Duplication    Length = 8-10 lines in 3 locations

view/SSTemplateParser.php 3 locations

@@ 793-802 (lines=10) @@
790
			$res_98 = $result;
791
			$pos_98 = $this->pos;
792
			$_97 = NULL;
793
			do {
794
				$matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos;
795
				$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
796
				if ($subres !== FALSE) {
797
					$this->store( $result, $subres, "Default" );
798
				}
799
				else { $_97 = FALSE; break; }
800
				$_97 = TRUE; break;
801
			}
802
			while(0);
803
			if( $_97 === FALSE) {
804
				$result = $res_98;
805
				$this->pos = $pos_98;
@@ 860-867 (lines=8) @@
857
			$res_113 = $result;
858
			$pos_113 = $this->pos;
859
			$_112 = NULL;
860
			do {
861
				$matcher = 'match_'.'InjectionVariables'; $key = $matcher; $pos = $this->pos;
862
				$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
863
				if ($subres !== FALSE) { $this->store( $result, $subres ); }
864
				else { $_112 = FALSE; break; }
865
				$_112 = TRUE; break;
866
			}
867
			while(0);
868
			if( $_112 === FALSE) {
869
				$result = $res_113;
870
				$this->pos = $pos_113;
@@ 2741-2748 (lines=8) @@
2738
			$res_450 = $result;
2739
			$pos_450 = $this->pos;
2740
			$_449 = NULL;
2741
			do {
2742
				$matcher = 'match_'.'CacheBlockArguments'; $key = $matcher; $pos = $this->pos;
2743
				$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
2744
				if ($subres !== FALSE) { $this->store( $result, $subres ); }
2745
				else { $_449 = FALSE; break; }
2746
				$_449 = TRUE; break;
2747
			}
2748
			while(0);
2749
			if( $_449 === FALSE) {
2750
				$result = $res_450;
2751
				$this->pos = $pos_450;