Code Duplication    Length = 4-4 lines in 2 locations

includes/api/ApiMain.php 2 locations

@@ 1683-1686 (lines=4) @@
1680
			$header = $this->msg( 'api-help-datatypes-header' )->parse();
1681
1682
			// Add an additional span with sanitized ID
1683
			if ( !$this->getConfig()->get( 'ExperimentalHtmlIds' ) ) {
1684
				$header = Html::element( 'span', [ 'id' => Sanitizer::escapeId( 'main/datatypes' ) ] ) .
1685
					$header;
1686
			}
1687
			$help['datatypes'] .= Html::rawElement( 'h' . min( 6, $level ),
1688
				[ 'id' => 'main/datatypes', 'class' => 'apihelp-header' ],
1689
				$header
@@ 1705-1708 (lines=4) @@
1702
			}
1703
1704
			// Add an additional span with sanitized ID
1705
			if ( !$this->getConfig()->get( 'ExperimentalHtmlIds' ) ) {
1706
				$header = Html::element( 'span', [ 'id' => Sanitizer::escapeId( 'main/credits' ) ] ) .
1707
					$header;
1708
			}
1709
			$header = $this->msg( 'api-credits-header' )->parse();
1710
			$help['credits'] .= Html::rawElement( 'h' . min( 6, $level ),
1711
				[ 'id' => 'main/credits', 'class' => 'apihelp-header' ],