Code Duplication    Length = 7-9 lines in 3 locations

includes/tidy/Balancer.php 3 locations

@@ 2488-2496 (lines=9) @@
2485
			case 'h3':
2486
			case 'h4':
2487
			case 'h5':
2488
			case 'h6':
2489
				if ( $this->stack->inButtonScope( 'p' ) ) {
2490
					$this->inBodyMode( 'endtag', 'p' );
2491
				}
2492
				if ( $this->stack->currentNode->isA( BalanceSets::$headingSet ) ) {
2493
					$this->stack->pop();
2494
				}
2495
				$this->stack->insertHTMLElement( $value, $attribs );
2496
				return true;
2497
2498
			case 'pre':
2499
			case 'listing':
@@ 2709-2715 (lines=7) @@
2706
				}
2707
2708
			case 'optgroup':
2709
			case 'option':
2710
				if ( $this->stack->currentNode->isHtmlNamed( 'option' ) ) {
2711
					$this->inBodyMode( 'endtag', 'option' );
2712
				}
2713
				$this->afe->reconstruct( $this->stack );
2714
				$this->stack->insertHTMLElement( $value, $attribs );
2715
				return true;
2716
2717
			case 'rb':
2718
			case 'rtc':
@@ 3397-3405 (lines=9) @@
3394
				}
3395
				$this->stack->insertHTMLElement( $value, $attribs );
3396
				return true;
3397
			case 'optgroup':
3398
				if ( $this->stack->currentNode->isHtmlNamed( 'option' ) ) {
3399
					$this->stack->pop();
3400
				}
3401
				if ( $this->stack->currentNode->isHtmlNamed( 'optgroup' ) ) {
3402
					$this->stack->pop();
3403
				}
3404
				$this->stack->insertHTMLElement( $value, $attribs );
3405
				return true;
3406
			case 'select':
3407
				$this->inSelectMode( 'endtag', $value ); // treat it like endtag
3408
				return true;