wikimedia/mediawiki-extensions-Wikibase

View on GitHub

Showing 1,432 of 2,096 total issues

Avoid too many return statements within this method.
Open

        return null;
Severity: Major
Found in repo/maintenance/updateUnits.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $this->termsEditSummaryConverter->convertDescriptionsEditSummary( $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 $this->termsEditSummaryConverter->convertAliasesEditSummary( $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 new ValidationError( self::CODE_TITLE_NOT_FOUND, [ 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 null;
          Severity: Major
          Found in repo/rest-api/src/Infrastructure/JsonDiffJsonPatchValidator.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 $summary;
              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 $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 true;
                  Severity: Major
                  Found in repo/includes/Content/EntityContent.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return $this->handleStatementEditSummary( $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 $thisHolder->getEntity()->equals( $thatHolder->getEntity() );
                      Severity: Major
                      Found in repo/includes/Content/EntityContent.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return $patchedCurrent;
                        Severity: Major
                        Found in repo/includes/Content/EntityHandler.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return $this->handleDescriptionEditSummary( $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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language