Code Duplication    Length = 4-4 lines in 2 locations

includes/api/ApiMain.php 2 locations

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