Showing 1,432 of 2,096 total issues
Method prefetchCachedTerms
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function prefetchCachedTerms( array $entityIds, array $termTypes, array $languageCodes ): array {
[
self::RESOLVED_KEYS => $cacheKeys,
self::UNRESOLVED_IDS => $unresolvedIds, // This is intentionally unused.
self::KEY_PARTS_MAP => $keyPartsMap,
Method parseWellKnownProperty
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function parseWellKnownProperty(
array $wellKnownPropertyIds,
string $wellKnownName,
LoggerInterface $logger
): ?NumericPropertyId {
Function getPermissionErrors
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async getPermissionErrors( title: string ): Promise<PermissionError[]> {
const response = await this.api.get( {
action: 'query',
titles: new Set( [ title ] ),
prop: new Set( [ 'info' ] ),
Function SELF
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
expertStore,
formatterFactory,
parserStore,
language,
messageProvider,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
AffectedPagesFinder $affectedPagesFinder,
TitleFactory $titleFactory,
PageStore $pageStore,
PageUpdater $updater,
ChangeRunCoalescer $changeRunCoalescer,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PropertyLabelResolver $propertyLabelResolver,
SnaksFinder $snaksFinder,
EntityLookup $entityLookup,
DataAccessSnakFormatterFactory $dataAccessSnakFormatterFactory,
UsageAccumulatorFactory $usageAccumulatorFactory,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
NamespaceChecker $namespaceChecker,
JobQueueGroupFactory $jobQueueGroupFactory,
DatabaseEntitySource $entitySource,
SiteLinkLookup $siteLinkLookup,
LoggerInterface $logger,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PropertyTermStoreWriter $propertyTermStoreWriter,
SeekableEntityIdPager $idPager,
MessageReporter $progressReporter,
MessageReporter $errorReporter,
RepoDomainDb $db,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
SubscriptionLookup $subscriptionLookup,
EntityChangeLookup $changeLookup,
EntityIdParser $entityIdParser,
JobQueueGroupFactory $jobQueueGroupFactory,
ChangeStore $changeStore,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ItemTermStoreWriter $itemTermStoreWriter,
$itemIdIterable,
MessageReporter $progressReporter,
MessageReporter $errorReporter,
RepoDomainDb $db,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Config $config = null,
LoggerInterface $logger = null,
ExtensionRegistry $extensionRegistry = null,
SettingsArray $wikibaseRepoSettings = null,
HTTPRequestFactory $requestFactory = null,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EntityRevisionLookup $entityRevisionLookup,
EntityStore $entityStore,
EntityPermissionChecker $permissionChecker,
SummaryFormatter $summaryFormatter,
EditFilterHookRunner $editFilterHookRunner,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiResult $result,
EntityTitleStoreLookup $entityTitleStoreLookup,
SerializerFactory $serializerFactory,
Serializer $entitySerializer,
SiteLookup $siteLookup,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
MergeFactory $mergeFactory,
EntityRevisionLookup $entityRevisionLookup,
MediaWikiEditEntityFactory $editEntityFactory,
EntityPermissionChecker $permissionChecker,
SummaryFormatter $summaryFormatter,
Method factory
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $mainModule,
string $moduleName,
ApiHelperFactory $apiHelperFactory,
ChangeOpFactoryProvider $changeOpFactoryProvider,
EntityIdParser $entityIdParser,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $mainModule,
string $moduleName,
SiteLinkChangeOpFactory $siteLinkChangeOpFactory,
SiteLinkBadgeChangeOpSerializationValidator $badgeSerializationValidator,
SiteLinkPageNormalizer $siteLinkPageNormalizer,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiQuery $apiQuery,
string $moduleName,
LinkBatchFactory $linkBatchFactory,
EntitySearchHelper $entitySearchHelper,
EntityTitleLookup $titleLookup,
Method factory
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiQuery $apiQuery,
string $moduleName,
LinkBatchFactory $linkBatchFactory,
array $enabledEntityTypes,
array $entitySearchHelperCallbacks,
Method factory
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $mainModule,
string $moduleName,
IBufferingStatsdDataFactory $statsdDataFactory,
DataTypeDefinitions $dataTypeDefinitions,
EntityChangeOpProvider $entityChangeOpProvider,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $mainModule,
string $moduleName,
StatementGuidValidator $guidValidator,
StatementGuidParser $guidParser,
EntityIdParser $idParser,