Code Duplication    Length = 7-8 lines in 3 locations

view/SSTemplateParser.php 3 locations

@@ 1745-1752 (lines=8) @@
1742
				$pos_251 = $this->pos;
1743
				$matcher = 'match_'.'ElseIfPart'; $key = $matcher; $pos = $this->pos;
1744
				$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
1745
				if ($subres !== FALSE) { $this->store( $result, $subres ); }
1746
				else {
1747
					$result = $res_251;
1748
					$this->pos = $pos_251;
1749
					unset( $res_251 );
1750
					unset( $pos_251 );
1751
					break;
1752
				}
1753
			}
1754
			$res_252 = $result;
1755
			$pos_252 = $this->pos;
@@ 1758-1764 (lines=7) @@
1755
			$pos_252 = $this->pos;
1756
			$matcher = 'match_'.'ElsePart'; $key = $matcher; $pos = $this->pos;
1757
			$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
1758
			if ($subres !== FALSE) { $this->store( $result, $subres ); }
1759
			else {
1760
				$result = $res_252;
1761
				$this->pos = $pos_252;
1762
				unset( $res_252 );
1763
				unset( $pos_252 );
1764
			}
1765
			if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
1766
			else { $_258 = FALSE; break; }
1767
			if (( $subres = $this->whitespace(  ) ) !== FALSE) { $result["text"] .= $subres; }
@@ 2276-2282 (lines=7) @@
2273
			$pos_352 = $this->pos;
2274
			$matcher = 'match_'.'CacheBlockArguments'; $key = $matcher; $pos = $this->pos;
2275
			$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
2276
			if ($subres !== FALSE) { $this->store( $result, $subres ); }
2277
			else {
2278
				$result = $res_352;
2279
				$this->pos = $pos_352;
2280
				unset( $res_352 );
2281
				unset( $pos_352 );
2282
			}
2283
			$res_364 = $result;
2284
			$pos_364 = $this->pos;
2285
			$_363 = NULL;