Showing 1,432 of 2,096 total issues
Method factory
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $apiMain,
string $moduleName,
SiteLookup $siteLookup,
IBufferingStatsdDataFactory $stats,
ApiHelperFactory $apiHelperFactory,
Method __construct
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $mainModule,
string $moduleName,
ApiErrorReporter $errorReporter,
Deserializer $statementDeserializer,
StatementChangeOpFactory $statementChangeOpFactory,
Method factory
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
InterwikiLookup $interwikiLookup,
SpecialPageFactory $specialPageFactory,
EntityExistenceChecker $entityExistenceChecker,
EntityIdParser $entityIdParser,
EntityLinkFormatterFactory $entityLinkFormatterFactory,
Method __construct
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
FingerprintChangeOpFactory $fingerprintChangeOpFactory,
StatementChangeOpFactory $statementChangeOpFactory,
SiteLinkChangeOpFactory $siteLinkChangeOpFactory,
TermChangeOpSerializationValidator $termChangeOpSerializationValidator,
SiteLinkBadgeChangeOpSerializationValidator $badgeChangeOpSerializationValidator,
Method onShowSearchHit
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onShowSearchHit( $searchPage, $result,
$terms, &$link, &$redirect, &$section, &$extract, &$score, &$size, &$date, &$related,
&$html
Method __construct
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EntityTitleStoreLookup $titleLookup,
EntityRevisionLookup $entityLookup,
EntityStore $entityStore,
EntityPermissionChecker $permissionChecker,
EntityDiffer $entityDiffer,
Function _registerTogglerForLanguagelistviewDiv
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_registerTogglerForLanguagelistviewDiv: function ( optionKey ) {
var self = this,
api = new mw.Api();
this.$entitytermsforlanguagelistviewToggler = $( '<div>' )
.addClass( 'wikibase-entitytermsview-entitytermsforlanguagelistview-toggler' )
Function _appendItem
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_appendItem: function ( item ) {
var self = this;
var label = this.options.manipulateLabel
? this.options.manipulateLabel( item.getLabel() )
Function _create
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function () {
if ( !this.options.getListItemAdapter
|| ( this.options.value && !( this.options.value instanceof datamodel.StatementList ) )
) {
throw new Error( 'Required option not specified properly' );
Function 6eeb
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var createNonEnumerableProperty = __webpack_require__("9112");
var has = __webpack_require__("5135");
Method rebuildItemTerms
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function rebuildItemTerms( DatabaseUpdater $updater ) {
$localEntitySourceName = WikibaseRepo::getSettings()->getSetting( 'localEntitySourceName' );
$itemSource = WikibaseRepo::getEntitySourceDefinitions()
->getDatabaseSourceForEntityType( 'item' );
if ( $itemSource === null || $itemSource->getSourceName() !== $localEntitySourceName ) {
Method getParser
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getParser(): ValueParser {
$params = $this->extractRequestParams();
$options = $this->getOptionsObject( $params['options'] );
Method execute
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( $subPage ): void {
$this->setHeaders();
$this->outputHeader();
$this->getOutput()->addWikiMsg( 'wikibase-mylanguagefallbackchain-text' );
Method modifyEntity
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function modifyEntity( EntityDocument $entity, ChangeOp $changeOp, array $preparedParameters ): Summary {
$data = $preparedParameters[self::PARAM_DATA];
$exists = $this->entityExists( $entity->getId() );
Method onShowSearchHit
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function onShowSearchHit( $searchPage, $result,
$terms, &$link, &$redirect, &$section, &$extract, &$score, &$size, &$date, &$related,
&$html
): void {
if ( $result instanceof ExtendedResult ) {
Method newPlaceHolderEmittingEntityTermsView
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function newPlaceHolderEmittingEntityTermsView(
EntityDocument $entity,
Language $language,
TermLanguageFallbackChain $termFallbackChain
) {
Method __construct
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct() {
parent::__construct();
$this->addDescription( 'Generate a ' . $this->getDumpType() . ' dump from entities in the repository.' );
Method throwUseCaseError
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function throwUseCaseError( ValidationError $validationError ): void {
$context = $validationError->getContext();
switch ( $validationError->getCode() ) {
case LanguageCodeValidator::CODE_INVALID_LANGUAGE_CODE:
throw UseCaseError::newPatchResultInvalidKey( '', $context[LanguageCodeValidator::CONTEXT_LANGUAGE_CODE] );
Method findActuallyUnusedTermInLangIds
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function findActuallyUnusedTermInLangIds( array $termInLangIds, IDatabase $dbw ) {
$unusedTermInLangIds = [];
foreach ( $termInLangIds as $termInLangId ) {
// Note: Not batching here is intentional to avoid deadlocks (see method comment)
$usedInProperties = $dbw->newSelectQueryBuilder()
Function validateBridgeApplicability
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public validateBridgeApplicability(
path: MainSnakPath,
): Promise<unknown> {
if ( this.state.applicationStatus === ApplicationStatus.SAVED ) {
// saving edits can transition us from applicable to inapplicable states, but that should not be an error