Code Duplication    Length = 46-46 lines in 2 locations

view/SSTemplateParser.php 2 locations

@@ 1932-1977 (lines=46) @@
1929
				$this->pos = $pos_283;
1930
			}
1931
			$_293 = NULL;
1932
			do {
1933
				$_291 = NULL;
1934
				do {
1935
					$res_284 = $result;
1936
					$pos_284 = $this->pos;
1937
					$matcher = 'match_'.'DollarMarkedLookup'; $key = $matcher; $pos = $this->pos;
1938
					$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
1939
					if ($subres !== FALSE) {
1940
						$this->store( $result, $subres, "DollarMarkedLookup" );
1941
						$_291 = TRUE; break;
1942
					}
1943
					$result = $res_284;
1944
					$this->pos = $pos_284;
1945
					$_289 = NULL;
1946
					do {
1947
						$res_286 = $result;
1948
						$pos_286 = $this->pos;
1949
						$matcher = 'match_'.'QuotedString'; $key = $matcher; $pos = $this->pos;
1950
						$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
1951
						if ($subres !== FALSE) {
1952
							$this->store( $result, $subres, "QuotedString" );
1953
							$_289 = TRUE; break;
1954
						}
1955
						$result = $res_286;
1956
						$this->pos = $pos_286;
1957
						$matcher = 'match_'.'Lookup'; $key = $matcher; $pos = $this->pos;
1958
						$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
1959
						if ($subres !== FALSE) {
1960
							$this->store( $result, $subres, "Lookup" );
1961
							$_289 = TRUE; break;
1962
						}
1963
						$result = $res_286;
1964
						$this->pos = $pos_286;
1965
						$_289 = FALSE; break;
1966
					}
1967
					while(0);
1968
					if( $_289 === TRUE ) { $_291 = TRUE; break; }
1969
					$result = $res_284;
1970
					$this->pos = $pos_284;
1971
					$_291 = FALSE; break;
1972
				}
1973
				while(0);
1974
				if( $_291 === FALSE) { $_293 = FALSE; break; }
1975
				$_293 = TRUE; break;
1976
			}
1977
			while(0);
1978
			if( $_293 === FALSE) { $_295 = FALSE; break; }
1979
			$_295 = TRUE; break;
1980
		}
@@ 2817-2862 (lines=46) @@
2814
				$res_475 = $result;
2815
				$pos_475 = $this->pos;
2816
				$_474 = NULL;
2817
				do {
2818
					$_472 = NULL;
2819
					do {
2820
						$res_465 = $result;
2821
						$pos_465 = $this->pos;
2822
						$matcher = 'match_'.'CacheBlock'; $key = $matcher; $pos = $this->pos;
2823
						$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
2824
						if ($subres !== FALSE) {
2825
							$this->store( $result, $subres );
2826
							$_472 = TRUE; break;
2827
						}
2828
						$result = $res_465;
2829
						$this->pos = $pos_465;
2830
						$_470 = NULL;
2831
						do {
2832
							$res_467 = $result;
2833
							$pos_467 = $this->pos;
2834
							$matcher = 'match_'.'UncachedBlock'; $key = $matcher; $pos = $this->pos;
2835
							$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
2836
							if ($subres !== FALSE) {
2837
								$this->store( $result, $subres );
2838
								$_470 = TRUE; break;
2839
							}
2840
							$result = $res_467;
2841
							$this->pos = $pos_467;
2842
							$matcher = 'match_'.'CacheBlockTemplate'; $key = $matcher; $pos = $this->pos;
2843
							$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
2844
							if ($subres !== FALSE) {
2845
								$this->store( $result, $subres );
2846
								$_470 = TRUE; break;
2847
							}
2848
							$result = $res_467;
2849
							$this->pos = $pos_467;
2850
							$_470 = FALSE; break;
2851
						}
2852
						while(0);
2853
						if( $_470 === TRUE ) { $_472 = TRUE; break; }
2854
						$result = $res_465;
2855
						$this->pos = $pos_465;
2856
						$_472 = FALSE; break;
2857
					}
2858
					while(0);
2859
					if( $_472 === FALSE) { $_474 = FALSE; break; }
2860
					$_474 = TRUE; break;
2861
				}
2862
				while(0);
2863
				if( $_474 === FALSE) {
2864
					$result = $res_475;
2865
					$this->pos = $pos_475;