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 '?';
Severity: Major
Found in repo/includes/SummaryFormatter.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                        return '<' . get_class( $arg ) . '>';
    Severity: Major
    Found in repo/includes/SummaryFormatter.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return true;
      Severity: Major
      Found in repo/includes/Hooks/HtmlPageLinkRendererEndHookHandler.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

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

          Avoid too many return statements within this method.
          Open

                          return strval( $arg );
          Severity: Major
          Found in repo/includes/SummaryFormatter.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return $this->language->commaList( $strings );
            Severity: Major
            Found in repo/includes/SummaryFormatter.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return true;
              Severity: Major
              Found in repo/includes/Hooks/HtmlPageLinkRendererEndHookHandler.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return true;
                Severity: Major
                Found in repo/includes/Hooks/HtmlPageLinkRendererEndHookHandler.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return true;
                  Severity: Major
                  Found in repo/includes/Hooks/HtmlPageLinkRendererEndHookHandler.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->wholeEntityEditSummaryConverter->newSummaryForItemPatch( $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/includes/ParserOutput/GeoDataDataUpdater.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

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