Code Duplication    Length = 8-8 lines in 2 locations

includes/tidy/Balancer.php 2 locations

@@ 2571-2578 (lines=8) @@
2568
2569
			// OMITTED: <plaintext>
2570
2571
			case 'button':
2572
				if ( $this->stack->inScope( 'button' ) ) {
2573
					$this->inBodyMode( 'endtag', 'button' );
2574
					return $this->insertToken( $token, $value, $attribs, $selfClose );
2575
				}
2576
				$this->afe->reconstruct( $this->stack );
2577
				$this->stack->insertHTMLElement( $value, $attribs );
2578
				return true;
2579
2580
			case 'a':
2581
				$activeElement = $this->afe->findElementByTag( 'a' );
@@ 2844-2851 (lines=8) @@
2841
				}
2842
				return true;
2843
2844
			case 'p':
2845
				if ( !$this->stack->inButtonScope( 'p' ) ) {
2846
					$this->inBodyMode( 'tag', 'p', [] );
2847
					return $this->insertToken( $token, $value, $attribs, $selfClose );
2848
				}
2849
				$this->stack->generateImpliedEndTags( $value );
2850
				$this->stack->popTag( $value );
2851
				return true;
2852
2853
			case 'li':
2854
				if ( !$this->stack->inListItemScope( $value ) ) {