client/includes/Hooks/InfoActionHookHandler.php
Method formatEntityUsage
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function formatEntityUsage( array $usages, IContextSource $context ): array {
$usageAspectsByEntity = [];
$entityIds = [];
foreach ( $usages as $entityUsage ) {
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
NamespaceChecker $namespaceChecker,
RepoLinker $repoLinker,
SiteLinkLookup $siteLinkLookup,
$siteId,
UsageLookup $usageLookup,
Method factory
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
DescriptionLookup $descriptionLookup,
FallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory,
NamespaceChecker $namespaceChecker,
RepoLinker $repoLinker,
SettingsArray $clientSettings,