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 [
                'factor' => $unit['si'],
                'unit' => $unit['siUnit'],
                // These two are just for humans, not used by actual converter
                'label' => $unit['unitLabel'],
Severity: Major
Found in repo/maintenance/updateUnits.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 $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 new ValidationError(
                          self::CODE_BADGE_NOT_ALLOWED,
                          [ self::CONTEXT_VALUE => $e->getBadge(), 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->checkSitelinkConflict( $itemId, $this->deserializedSitelink );
            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 $patchedLatest;
              Severity: Major
              Found in repo/includes/EditEntity/MediaWikiEditEntity.php - About 30 mins to fix

                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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language