repo/includes/Api/GetEntities.php
File GetEntities.php
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
declare( strict_types = 1 );
namespace Wikibase\Repo\Api;
Method getAllowedParams
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getAllowedParams(): array {
$siteIds = $this->siteLinkGlobalIdentifiersProvider->getList( $this->siteLinkGroups );
return array_merge( parent::getAllowedParams(), [
'ids' => [
Method __construct
has 14 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $mainModule,
string $moduleName,
StringNormalizer $stringNormalizer,
LanguageFallbackChainFactory $languageFallbackChainFactory,
SiteLinkGlobalIdentifiersProvider $siteLinkGlobalIdentifiersProvider,
Method factory
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $apiMain,
string $moduleName,
SiteLookup $siteLookup,
IBufferingStatsdDataFactory $stats,
ApiHelperFactory $apiHelperFactory,
Method getExamplesMessages
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getExamplesMessages(): array {
return [
"action=wbgetentities&ids=Q42"
=> "apihelp-wbgetentities-example-1",
"action=wbgetentities&ids=P17"