wikimedia/mediawiki-core

View on GitHub

Showing 9,426 of 11,461 total issues

Avoid too many return statements within this method.
Open

        return false;
Severity: Major
Found in includes/parser/BlockLevelPass.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $pageLang->getWeekdayName( (int)$ts->format( 'w' ) + 1 );
    Severity: Major
    Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return $localTs->format( 'YmdHis' );
      Severity: Major
      Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return SpecialVersion::getVersion();
        Severity: Major
        Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return self::loginHook( $user, $bp, $performer, Status::newFatal( 'wrongpassword' ) );
          Severity: Major
          Found in includes/user/BotPassword.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

                          return '[' . implode( ',', array_map( [ $this, 'optionToString' ], $value ) ) . ']';
              Severity: Major
              Found in includes/parser/ParserOptions.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return StatusValue::newFatal( 'noname' );
                Severity: Major
                Found in includes/user/PasswordReset.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $pageLang->formatNumNoSeparators( $localTs->format( 'm' ) );
                  Severity: Major
                  Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return $pageLang->formatNumNoSeparators( $ts->format( 'Y' ) );
                    Severity: Major
                    Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return StatusValue::newGood();
                      Severity: Major
                      Found in includes/user/PasswordReset.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return (string)$value;
                        Severity: Major
                        Found in includes/parser/ParserOptions.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return $pageLang->formatNumNoSeparators( $ts->format( 'j' ) );
                          Severity: Major
                          Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return $pageLang->formatNum( (int)$ts->format( 'W' ) );
                            Severity: Major
                            Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return $pageLang->getDirMark();
                              Severity: Major
                              Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return $pageLang->getMonthAbbreviation( (int)$localTs->format( 'n' ) );
                                Severity: Major
                                Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return $pageLang->time(
                                                      $localTs->format( 'YmdHis' ),
                                                      false,
                                                      false
                                                  );
                                  Severity: Major
                                  Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return $ts->getTimestamp( TS_MW );
                                    Severity: Major
                                    Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return Status::newFatal( 'botpasswords-locked' );
                                      Severity: Major
                                      Found in includes/user/BotPassword.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $age >= $reqAge;
                                        Severity: Major
                                        Found in includes/user/UserGroupManager.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language