Code Duplication    Length = 15-15 lines in 2 locations

includes/tidy/Balancer.php 2 locations

@@ 3073-3087 (lines=15) @@
3070
3071
	private function inCaptionMode( $token, $value, $attribs = null, $selfclose = false ) {
3072
		if ( $token === 'tag' ) {
3073
			switch ( $value ) {
3074
			case 'caption':
3075
			case 'col':
3076
			case 'colgroup':
3077
			case 'tbody':
3078
			case 'td':
3079
			case 'tfoot':
3080
			case 'th':
3081
			case 'thead':
3082
			case 'tr':
3083
				if ( $this->endCaption() ) {
3084
					$this->insertToken( $token, $value, $attribs, $selfclose );
3085
				}
3086
				return true;
3087
			}
3088
			// Fall through to "anything else" case.
3089
		} elseif ( $token === 'endtag' ) {
3090
			switch ( $value ) {
@@ 3316-3330 (lines=15) @@
3313
	}
3314
	private function inCellMode( $token, $value, $attribs = null, $selfclose = false ) {
3315
		if ( $token === 'tag' ) {
3316
			switch ( $value ) {
3317
			case 'caption':
3318
			case 'col':
3319
			case 'colgroup':
3320
			case 'tbody':
3321
			case 'td':
3322
			case 'tfoot':
3323
			case 'th':
3324
			case 'thead':
3325
			case 'tr':
3326
				if ( $this->endCell() ) {
3327
					$this->insertToken( $token, $value, $attribs, $selfclose );
3328
				}
3329
				return true;
3330
			}
3331
		} elseif ( $token === 'endtag' ) {
3332
			switch ( $value ) {
3333
			case 'td':