Code Duplication    Length = 9-9 lines in 2 locations

includes/api/ApiQuerySiteinfo.php 2 locations

@@ 746-754 (lines=9) @@
743
		return $this->getResult()->addValue( 'query', $property, $data );
744
	}
745
746
	public function appendExtensionTags( $property ) {
747
		global $wgParser;
748
		$wgParser->firstCallInit();
749
		$tags = array_map( [ $this, 'formatParserTags' ], $wgParser->getTags() );
750
		ApiResult::setArrayType( $tags, 'BCarray' );
751
		ApiResult::setIndexedTagName( $tags, 't' );
752
753
		return $this->getResult()->addValue( 'query', $property, $tags );
754
	}
755
756
	public function appendFunctionHooks( $property ) {
757
		global $wgParser;
@@ 756-764 (lines=9) @@
753
		return $this->getResult()->addValue( 'query', $property, $tags );
754
	}
755
756
	public function appendFunctionHooks( $property ) {
757
		global $wgParser;
758
		$wgParser->firstCallInit();
759
		$hooks = $wgParser->getFunctionHooks();
760
		ApiResult::setArrayType( $hooks, 'BCarray' );
761
		ApiResult::setIndexedTagName( $hooks, 'h' );
762
763
		return $this->getResult()->addValue( 'query', $property, $hooks );
764
	}
765
766
	public function appendVariables( $property ) {
767
		$variables = MagicWord::getVariableIDs();