wikimedia/mediawiki-core

View on GitHub

Showing 9,426 of 11,461 total issues

Avoid too many return statements within this method.
Open

                return IPUtils::isInRange( $user->getRequest()->getIP(), $cond[1] );
Severity: Major
Found in includes/user/UserGroupManager.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return (bool)$result;
    Severity: Major
    Found in includes/user/UserGroupManager.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

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

        Avoid too many return statements within this method.
        Open

                        return (string)$svcOptions->get( MainConfigNames::ScriptPath );
        Severity: Major
        Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return (string)$svcOptions->get( MainConfigNames::StylePath );
          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, null, $performer, Status::newFatal( $msg ) );
            Severity: Major
            Found in includes/user/BotPassword.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return $this->recCheckCondition( $cond[1], $user )
                                  xor $this->recCheckCondition( $cond[2], $user );
              Severity: Major
              Found in includes/user/UserGroupManager.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return $this->getExtraCSPStyleSrcs();
                Severity: Major
                Found in includes/parser/ParserOutput.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $pageLang->getMonthNameGen( (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 CoreParserFunctions::$id( $parser, null );
                    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( $localTs->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 (string)$svcOptions->get( MainConfigNames::Sitename );
                        Severity: Major
                        Found in includes/parser/CoreMagicVariables.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

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

                            Avoid too many return statements within this method.
                            Open

                                        return StatusValue::newFatal( Message::newFromSpecifier( $error ) );
                            Severity: Major
                            Found in includes/user/PasswordReset.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return $pageLang->formatNum( $localTs->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 count( array_intersect( $groups, $this->getUserGroups( $user ) ) ) == count( $groups );
                                Severity: Major
                                Found in includes/user/UserGroupManager.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

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

                                    Avoid too many return statements within this method.
                                    Open

                                                    return $this->isCreatable( $name ) ? $name : false;
                                    Severity: Major
                                    Found in includes/user/UserNameUtils.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return $this->getNewSection();
                                      Severity: Major
                                      Found in includes/parser/ParserOutput.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $this->getHideNewSection();
                                        Severity: Major
                                        Found in includes/parser/ParserOutput.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language