wikimedia/mediawiki-core

View on GitHub

Showing 11,779 of 11,779 total issues

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 $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 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 $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/HTMLFloatField.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 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 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 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 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 $canCreateResult;
                      Severity: Major
                      Found in includes/changetags/ChangeTags.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return Status::newGood( (object)[
                                    'logId' => $logId,
                                    'addedTags' => $tagsAdded,
                                    'removedTags' => $tagsRemoved,
                                ] );
                        Severity: Major
                        Found in includes/changetags/ChangeTags.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return $status;
                          Severity: Major
                          Found in includes/changetags/ChangeTags.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 [];
                              Severity: Major
                              Found in includes/changes/RecentChange.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return Html::element( 'code', [], $params['href'] );
                                Severity: Major
                                Found in includes/preferences/SignatureValidator.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return Html::element( 'code', [], $params['subtype'] );
                                  Severity: Major
                                  Found in includes/preferences/SignatureValidator.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return $form->msg( 'badsig' )->escaped();
                                    Severity: Major
                                    Found in includes/preferences/DefaultPreferencesFactory.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return Html::element( 'code', [], '</' . $params['name'] . '>' );
                                      Severity: Major
                                      Found in includes/preferences/SignatureValidator.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $errors;
                                        Severity: Major
                                        Found in includes/preferences/DefaultPreferencesFactory.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language