Code Duplication    Length = 8-8 lines in 2 locations

lib/ar/html/zen.php 2 locations

@@ 247-254 (lines=8) @@
244
		private function parseExpression() {
245
			$token = $this->scanner->token_ahead;
246
			switch( $token ) {
247
				case ar_html_zen::T_EXPRESSION_OPEN:
248
					$this->scanner->next();
249
					$result = $this->parse();
250
					if( $this->scanner->token_ahead != ar_html_zen::T_EXPRESSION_CLOSE ) {
251
						die("No closing ')' found for expression.");
252
					}
253
					$this->scanner->next();
254
				break;
255
				case ar_html_zen::T_IDENT:
256
					$tagName = $this->scanner->token_ahead_value;
257
					$result["tagName"] = $tagName;
@@ 288-295 (lines=8) @@
285
							die('no ident found for attribute: '.$key);
286
						}
287
					break;
288
					case ar_html_zen::T_OP_ATTRIBUTES_OPEN:
289
						$this->scanner->next();
290
						$result = array_merge($result, $this->parseAttributeList() ); // FIXME: deep merge
291
						if( $this->scanner->token_ahead != ar_html_zen::T_OP_ATTRIBUTES_CLOSE ) {
292
							die("No attribute closing tag ']' found.");
293
						}
294
						$this->scanner->next();
295
					break;
296
					default:
297
						$bye = true;
298
					break;