Code Duplication    Length = 7-10 lines in 3 locations

includes/tidy/Balancer.php 3 locations

@@ 2499-2506 (lines=8) @@
2496
				return true;
2497
2498
			case 'pre':
2499
			case 'listing':
2500
				if ( $this->stack->inButtonScope( 'p' ) ) {
2501
					$this->inBodyMode( 'endtag', 'p' );
2502
				}
2503
				$this->stack->insertHTMLElement( $value, $attribs );
2504
				$this->ignoreLinefeed = true;
2505
				// OMITTED: frameset_ok
2506
				return true;
2507
2508
			case 'form':
2509
				if (
@@ 2627-2636 (lines=10) @@
2624
				// OMITTED: frameset_ok
2625
				return true;
2626
2627
			case 'table':
2628
				// The document is never in "quirks mode"; see simplifications
2629
				// above.
2630
				if ( $this->stack->inButtonScope( 'p' ) ) {
2631
					$this->inBodyMode( 'endtag', 'p' );
2632
				}
2633
				$this->stack->insertHTMLElement( $value, $attribs );
2634
				// OMITTED: frameset_ok
2635
				$this->switchMode( 'inTableMode' );
2636
				return true;
2637
2638
			case 'area':
2639
			case 'br':
@@ 2666-2672 (lines=7) @@
2663
				$this->stack->pop();
2664
				return true;
2665
2666
			case 'hr':
2667
				if ( $this->stack->inButtonScope( 'p' ) ) {
2668
					$this->inBodyMode( 'endtag', 'p' );
2669
				}
2670
				$this->stack->insertHTMLElement( $value, $attribs );
2671
				$this->stack->pop();
2672
				return true;
2673
2674
			case 'image':
2675
				// warts!