Code Duplication    Length = 7-8 lines in 3 locations

view/SSTemplateParser.php 3 locations

@@ 1757-1764 (lines=8) @@
1754
				$pos_252 = $this->pos;
1755
				$matcher = 'match_'.'ElseIfPart'; $key = $matcher; $pos = $this->pos;
1756
				$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
1757
				if ($subres !== FALSE) { $this->store( $result, $subres ); }
1758
				else {
1759
					$result = $res_252;
1760
					$this->pos = $pos_252;
1761
					unset( $res_252 );
1762
					unset( $pos_252 );
1763
					break;
1764
				}
1765
			}
1766
			$res_253 = $result;
1767
			$pos_253 = $this->pos;
@@ 1770-1776 (lines=7) @@
1767
			$pos_253 = $this->pos;
1768
			$matcher = 'match_'.'ElsePart'; $key = $matcher; $pos = $this->pos;
1769
			$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
1770
			if ($subres !== FALSE) { $this->store( $result, $subres ); }
1771
			else {
1772
				$result = $res_253;
1773
				$this->pos = $pos_253;
1774
				unset( $res_253 );
1775
				unset( $pos_253 );
1776
			}
1777
			if (( $subres = $this->literal( '<%' ) ) !== FALSE) { $result["text"] .= $subres; }
1778
			else { $_259 = FALSE; break; }
1779
			if (( $subres = $this->whitespace(  ) ) !== FALSE) { $result["text"] .= $subres; }
@@ 2288-2294 (lines=7) @@
2285
			$pos_353 = $this->pos;
2286
			$matcher = 'match_'.'CacheBlockArguments'; $key = $matcher; $pos = $this->pos;
2287
			$subres = ( $this->packhas( $key, $pos ) ? $this->packread( $key, $pos ) : $this->packwrite( $key, $pos, $this->$matcher(array_merge($stack, array($result))) ) );
2288
			if ($subres !== FALSE) { $this->store( $result, $subres ); }
2289
			else {
2290
				$result = $res_353;
2291
				$this->pos = $pos_353;
2292
				unset( $res_353 );
2293
				unset( $pos_353 );
2294
			}
2295
			$res_365 = $result;
2296
			$pos_365 = $this->pos;
2297
			$_364 = NULL;