wikimedia/mediawiki-extensions-Wikibase

View on GitHub

Showing 2,096 of 2,096 total issues

Avoid too many return statements within this method.
Open

            return false;
Severity: Major
Found in repo/includes/Content/EntityContent.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return false;
    Severity: Major
    Found in repo/includes/Content/EntityContent.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return new ValidationError(
                      self::CODE_INVALID_BADGE,
                      [ self::CONTEXT_VALUE => $e->getValue(), self::CONTEXT_SITE_ID => $siteId ]
                  );
      Severity: Major
      Found in repo/rest-api/src/Infrastructure/SiteLinkLookupSitelinkValidator.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return $this->status;
        Severity: Major
        Found in repo/includes/EditEntity/MediaWikiEditEntity.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return $this->newSummaryForAliasesInLanguageEdit( $editSummary );
          Severity: Major
          Found in repo/rest-api/src/Infrastructure/EditSummaryFormatter.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return null;
            Severity: Major
            Found in repo/rest-api/src/Application/Validation/StatementsValidator.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                                  return $validationError;
              Severity: Major
              Found in repo/rest-api/src/Application/Validation/StatementsValidator.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return null;
                Severity: Major
                Found in repo/rest-api/src/Application/Validation/StatementValidator.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return $value;
                  Severity: Major
                  Found in lib/includes/Units/UnitConverter.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return null;
                    Severity: Major
                    Found in lib/includes/Units/UnitConverter.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return $value->transform( $targetUnit, [ $this->math, 'product' ], $mult );
                      Severity: Major
                      Found in lib/includes/Units/UnitConverter.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return false;
                        Severity: Major
                        Found in lib/includes/Formatters/ShowCalendarModelDecider.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return $resolutionResult;
                          Severity: Major
                          Found in lib/includes/Store/RedirectResolvingLatestRevisionLookup.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return true;
                            Severity: Major
                            Found in lib/includes/Formatters/ShowCalendarModelDecider.php - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return true;
                              Severity: Major
                              Found in client/data-bridge/src/data-access/ApiRepoConfigRepository.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return Promise.resolve();
                                Severity: Major
                                Found in client/data-bridge/src/store/actions.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return this.dispatch( 'addError', [ error ] );
                                  Severity: Major
                                  Found in client/data-bridge/src/store/actions.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return false;
                                    Severity: Major
                                    Found in client/data-bridge/src/data-access/ApiRepoConfigRepository.ts - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                              return [ 'signatureToCheck' => $signatureToCheck, 'data' => $data ];
                                      Severity: Major
                                      Found in lib/includes/SimpleCacheWithBagOStuff.php - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    return this.dispatch( 'addError', [ { type: ErrorTypes.UNSUPPORTED_DATAVALUE_TYPE } ] );
                                        Severity: Major
                                        Found in client/data-bridge/src/store/actions.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language