Code Duplication    Length = 4-4 lines in 2 locations

includes/api/ApiMain.php 2 locations

@@ 1748-1751 (lines=4) @@
1745
			$header = $this->msg( 'api-help-datatypes-header' )->parse();
1746
1747
			// Add an additional span with sanitized ID
1748
			if ( !$this->getConfig()->get( 'ExperimentalHtmlIds' ) ) {
1749
				$header = Html::element( 'span', [ 'id' => Sanitizer::escapeId( 'main/datatypes' ) ] ) .
1750
					$header;
1751
			}
1752
			$help['datatypes'] .= Html::rawElement( 'h' . min( 6, $level ),
1753
				[ 'id' => 'main/datatypes', 'class' => 'apihelp-header' ],
1754
				$header
@@ 1770-1773 (lines=4) @@
1767
			}
1768
1769
			// Add an additional span with sanitized ID
1770
			if ( !$this->getConfig()->get( 'ExperimentalHtmlIds' ) ) {
1771
				$header = Html::element( 'span', [ 'id' => Sanitizer::escapeId( 'main/credits' ) ] ) .
1772
					$header;
1773
			}
1774
			$header = $this->msg( 'api-credits-header' )->parse();
1775
			$help['credits'] .= Html::rawElement( 'h' . min( 6, $level ),
1776
				[ 'id' => 'main/credits', 'class' => 'apihelp-header' ],