wikimedia/mediawiki-core

View on GitHub

Showing 11,773 of 11,773 total issues

Avoid too many return statements within this method.
Open

        return $this->isValid();
Severity: Major
Found in includes/title/Title.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return true;
    Severity: Major
    Found in includes/htmlform/fields/HTMLTitlesMultiselectField.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return $actionObj;
      Severity: Major
      Found in includes/actions/ActionFactory.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $this->msg( 'htmlform-title-badnamespace', $text, $this->mParams['namespace'] );
        Severity: Major
        Found in includes/htmlform/fields/HTMLTitleTextField.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return $this->msg( 'htmlform-title-not-creatable', $text );
          Severity: Major
          Found in includes/htmlform/fields/HTMLTitleTextField.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return self::ARR;
            Severity: Major
            Found in includes/Html/FormOptions.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return $this->msg( 'htmlform-title-not-exists', $text );
              Severity: Major
              Found in includes/htmlform/fields/HTMLTitleTextField.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return parent::validate( $value, $alldata );
                Severity: Major
                Found in includes/htmlform/fields/HTMLTitleTextField.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return true;
                  Severity: Major
                  Found in includes/htmlform/fields/HTMLFloatField.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return true;
                    Severity: Major
                    Found in includes/htmlform/fields/HTMLUsersMultiselectField.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return $result;
                      Severity: Major
                      Found in includes/htmlform/fields/HTMLNamespacesMultiselectField.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return true;
                        Severity: Major
                        Found in includes/htmlform/fields/HTMLNamespacesMultiselectField.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return Html::rawElement( 'div', $attribs, "\n$html\n" );
                          Severity: Major
                          Found in includes/htmlform/HTMLForm.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return true;
                            Severity: Major
                            Found in includes/htmlform/fields/HTMLTagMultiselectField.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return true;
                              Severity: Major
                              Found in includes/htmlform/fields/HTMLRestrictionsField.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return $this->mAttribs[$name] ?? null;
                                Severity: Major
                                Found in includes/changes/RecentChange.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return strcasecmp( $aPreferred, $bPreferred );
                                  Severity: Major
                                  Found in includes/preferences/DefaultPreferencesFactory.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return self::tsToJapaneseGengoCalculate( $gy, 2019, '令和' );
                                    Severity: Major
                                    Found in includes/language/Language.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

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

                                        Avoid too many return statements within this method.
                                        Open

                                                return strcasecmp( $a, $b );
                                        Severity: Major
                                        Found in includes/preferences/DefaultPreferencesFactory.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language