wikimedia/mediawiki-core

View on GitHub

Showing 9,710 of 11,773 total issues

Avoid too many return statements within this method.
Open

                return (int)$row->page_latest;
Severity: Major
Found in includes/cache/LinkCache.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $authManager->beginAccountLink( $this->getUser(), $requests, $returnToUrl );
    Severity: Major
    Found in includes/specialpage/AuthManagerSpecialPage.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return AuthenticationResponse::newFail( $status->getMessage() );
      Severity: Major
      Found in includes/specialpage/AuthManagerSpecialPage.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $status;
        Severity: Major
        Found in includes/installer/PostgresSettingsForm.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                                      return $this->msg( 'noemailcreate' );
          Severity: Major
          Found in includes/specialpage/LoginSignupSpecialPage.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                    return Html::rawElement( 'div',
                                        [ 'id' => 'mw-createaccount' . ( !$isLoggedIn ? '-cta' : '' ),
                                            'class' => ( $isLoggedIn ? 'mw-form-related-link-container' : 'mw-ui-vform-field' ) ],
                                        ( $isLoggedIn ? '' : $this->msg( 'userlogin-noaccount' )->escaped() )
                                        . Html::element( 'a',
            Severity: Major
            Found in includes/specialpage/LoginSignupSpecialPage.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return Status::newGood();
              Severity: Major
              Found in includes/installer/PostgresSettingsForm.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                            return $rc->getAttribute( 'rc_this_oldid' ) === $rc->getAttribute( 'page_latest' );
                Severity: Major
                Found in includes/specialpage/ChangesListSpecialPage.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                          return true;
                  Severity: Major
                  Found in includes/specialpage/LoginSignupSpecialPage.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return $this->titleFormatter->getPrefixedDBkey( $page );
                    Severity: Major
                    Found in includes/cache/LinkCache.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return !empty( $row->page_lang )
                                          ? (string)$row->page_lang
                                          : null;
                      Severity: Major
                      Found in includes/cache/LinkCache.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return ( new HookRunner( $services->getHookContainer() ) )->onHTMLFileCache__useFileCache( $context );
                        Severity: Major
                        Found in includes/cache/HTMLFileCache.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                                      return $rc->getAttribute( 'rc_source' ) === RecentChange::SRC_NEW;
                          Severity: Major
                          Found in includes/specialpage/ChangesListSpecialPage.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                                    return;
                            Severity: Major
                            Found in includes/specialpage/ChangesListSpecialPage.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return $rc->getAttribute( 'rc_source' ) === RecentChange::SRC_CATEGORIZE;
                              Severity: Major
                              Found in includes/specialpage/ChangesListSpecialPage.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return AuthenticationResponse::newPass();
                                Severity: Major
                                Found in includes/specialpage/AuthManagerSpecialPage.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return $authManager->continueAccountLink( $requests );
                                  Severity: Major
                                  Found in includes/specialpage/AuthManagerSpecialPage.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                                    return $this->reasonValidatorResult;
                                    Severity: Major
                                    Found in includes/specialpage/LoginSignupSpecialPage.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                              return true;
                                      Severity: Major
                                      Found in includes/specialpage/LoginSignupSpecialPage.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                    return Status::newFatal( 'config-sqlite-connection-error', $e->getMessage() );
                                        Severity: Major
                                        Found in includes/installer/SqliteInstaller.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language