wikimedia/mediawiki-extensions-Wikibase

View on GitHub

Showing 1,432 of 2,096 total issues

Avoid too many return statements within this function.
Open

            return null;
Severity: Major
Found in view/resources/jquery/wikibase/jquery.wikibase.referenceview.js - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return [ $term->getText(), $term->getActualLanguageCode() ];

      Avoid too many return statements within this method.
      Open

              return null;
      Severity: Major
      Found in client/includes/DataAccess/Scribunto/CachingFallbackBasedTermLookup.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return [ $term->getText(), $term->getActualLanguageCode() ];

          Avoid too many return statements within this method.
          Open

                          return null;
          Severity: Major
          Found in client/includes/DataAccess/Scribunto/CachingFallbackBasedTermLookup.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return $title->getPrefixedText() === $diffOp->getOldValue() ||
                        $title->getPrefixedText() === $diffOp->getNewValue();
            Severity: Major
            Found in client/includes/RecentChanges/SiteLinkCommentCreator.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return array_combine(
                          range( 1, count( $badges ) ), $badges
                      );

                Avoid too many return statements within this method.
                Open

                            return $termFallback->getText();
                Severity: Major
                Found in client/includes/DataAccess/Scribunto/CachingFallbackBasedTermLookup.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return 0;
                  Severity: Major
                  Found in client/includes/Changes/ChangeRunCoalescer.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return Status::newFatal( 'edit_form_incomplete' ); //XXX: better message?
                    Severity: Major
                    Found in repo/includes/Actions/EditEntityAction.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return Status::newFatal( 'wikibase-undo-badpage', $this->getTitle(), $newerRevision->getId() );
                      Severity: Major
                      Found in repo/includes/Actions/EditEntityAction.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return $newTitle;
                        Severity: Major
                        Found in client/includes/Hooks/EchoNotificationsHandlers.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return Status::newFatal( 'wikibase-undo-samerev', $this->getTitle() );
                          Severity: Major
                          Found in repo/includes/Actions/EditEntityAction.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return $status;
                            Severity: Major
                            Found in repo/includes/Actions/SubmitEntityAction.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return Status::newFatal( 'wikibase-undo-badpage', $this->getTitle(), $olderRevision->getId() );
                              Severity: Major
                              Found in repo/includes/Actions/EditEntityAction.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return Status::newFatal( 'wikibase-undo-nocontent', $this->getTitle(), $olderRevision->getId() );
                                Severity: Major
                                Found in repo/includes/Actions/EditEntityAction.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return Status::newFatal( 'wikibase-undo-nocontent', $this->getTitle(), $newerRevision->getId() );
                                  Severity: Major
                                  Found in repo/includes/Actions/EditEntityAction.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                            return $status;
                                    Severity: Major
                                    Found in repo/includes/Actions/SubmitEntityAction.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

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

                                        Avoid too many return statements within this method.
                                        Open

                                                        return Status::newFatal( 'undo-norev', $req->getInt( 'undo' ) );
                                        Severity: Major
                                        Found in repo/includes/Actions/EditEntityAction.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language