Code Duplication    Length = 46-46 lines in 2 locations

view/SSTemplateParser.php 2 locations

@@ 1920-1965 (lines=46) @@
1917
				$this->pos = $pos_282;
1918
			}
1919
			$_292 = NULL;
1920
			do {
1921
				$_290 = NULL;
1922
				do {
1923
					$res_283 = $result;
1924
					$pos_283 = $this->pos;
1925
					$matcher = 'match_'.'DollarMarkedLookup'; $key = $matcher; $pos = $this->pos;
1926
					$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
1927
					if ($subres !== FALSE) {
1928
						$this->store( $result, $subres, "DollarMarkedLookup" );
1929
						$_290 = TRUE; break;
1930
					}
1931
					$result = $res_283;
1932
					$this->pos = $pos_283;
1933
					$_288 = NULL;
1934
					do {
1935
						$res_285 = $result;
1936
						$pos_285 = $this->pos;
1937
						$matcher = 'match_'.'QuotedString'; $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, "QuotedString" );
1941
							$_288 = TRUE; break;
1942
						}
1943
						$result = $res_285;
1944
						$this->pos = $pos_285;
1945
						$matcher = 'match_'.'Lookup'; $key = $matcher; $pos = $this->pos;
1946
						$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
1947
						if ($subres !== FALSE) {
1948
							$this->store( $result, $subres, "Lookup" );
1949
							$_288 = TRUE; break;
1950
						}
1951
						$result = $res_285;
1952
						$this->pos = $pos_285;
1953
						$_288 = FALSE; break;
1954
					}
1955
					while(0);
1956
					if( $_288 === TRUE ) { $_290 = TRUE; break; }
1957
					$result = $res_283;
1958
					$this->pos = $pos_283;
1959
					$_290 = FALSE; break;
1960
				}
1961
				while(0);
1962
				if( $_290 === FALSE) { $_292 = FALSE; break; }
1963
				$_292 = TRUE; break;
1964
			}
1965
			while(0);
1966
			if( $_292 === FALSE) { $_294 = FALSE; break; }
1967
			$_294 = TRUE; break;
1968
		}
@@ 2805-2850 (lines=46) @@
2802
				$res_474 = $result;
2803
				$pos_474 = $this->pos;
2804
				$_473 = NULL;
2805
				do {
2806
					$_471 = NULL;
2807
					do {
2808
						$res_464 = $result;
2809
						$pos_464 = $this->pos;
2810
						$matcher = 'match_'.'CacheBlock'; $key = $matcher; $pos = $this->pos;
2811
						$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
2812
						if ($subres !== FALSE) {
2813
							$this->store( $result, $subres );
2814
							$_471 = TRUE; break;
2815
						}
2816
						$result = $res_464;
2817
						$this->pos = $pos_464;
2818
						$_469 = NULL;
2819
						do {
2820
							$res_466 = $result;
2821
							$pos_466 = $this->pos;
2822
							$matcher = 'match_'.'UncachedBlock'; $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
								$_469 = TRUE; break;
2827
							}
2828
							$result = $res_466;
2829
							$this->pos = $pos_466;
2830
							$matcher = 'match_'.'CacheBlockTemplate'; $key = $matcher; $pos = $this->pos;
2831
							$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
2832
							if ($subres !== FALSE) {
2833
								$this->store( $result, $subres );
2834
								$_469 = TRUE; break;
2835
							}
2836
							$result = $res_466;
2837
							$this->pos = $pos_466;
2838
							$_469 = FALSE; break;
2839
						}
2840
						while(0);
2841
						if( $_469 === TRUE ) { $_471 = TRUE; break; }
2842
						$result = $res_464;
2843
						$this->pos = $pos_464;
2844
						$_471 = FALSE; break;
2845
					}
2846
					while(0);
2847
					if( $_471 === FALSE) { $_473 = FALSE; break; }
2848
					$_473 = TRUE; break;
2849
				}
2850
				while(0);
2851
				if( $_473 === FALSE) {
2852
					$result = $res_474;
2853
					$this->pos = $pos_474;