wikimedia/mediawiki-core

View on GitHub

Showing 9,710 of 11,773 total issues

Avoid too many return statements within this method.
Open

                            return $ctx->getUser()->equals( $rc->getPerformerIdentity() );
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_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 $rc->getAttribute( 'rc_log_type' ) === "newusers";
      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_patrolled' ) == RecentChange::PRC_AUTOPATROLLED;
        Severity: Major
        Found in includes/specialpage/ChangesListSpecialPage.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

                      return $this->applyPatch(
                          $patch,
                          $fullpath,
                          "Renaming index $oldIndex into $newIndex to table $table"
                      );
              Severity: Major
              Found in includes/installer/DatabaseUpdater.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                            return $rc->getAttribute( 'rc_patrolled' ) == RecentChange::PRC_PATROLLED;
                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/AuthManagerSpecialPage.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

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

                      Avoid too many return statements within this method.
                      Open

                                                  return $rc->getAttribute( 'rc_minor' );
                      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->reasonValidatorResult;
                          Severity: Major
                          Found in includes/specialpage/LoginSignupSpecialPage.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

                                      return [ $callerShouldAddGoodLink, $row ?: null ];
                              Severity: Major
                              Found in includes/cache/LinkCache.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                            return $performer->isRegistered() &&
                                                                MediaWikiServices::getInstance()
                                                                    ->getUserFactory()
                                                                    ->newFromUserIdentity( $performer )
                                                                    ->getExperienceLevel() === 'experienced';
                                Severity: Major
                                Found in includes/specialpage/ChangesListSpecialPage.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                          return $rcPatrolledValues[ $s ];
                                  Severity: Major
                                  Found in includes/specialpage/ChangesListSpecialPage.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return Status::newFatal( 'config-pg-not-in-role' );
                                    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_bot' );
                                      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_patrolled' ) == RecentChange::PRC_UNPATROLLED;
                                        Severity: Major
                                        Found in includes/specialpage/ChangesListSpecialPage.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language