wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub

Showing 718 of 718 total issues

Avoid too many return statements within this method.
Open

            return $status;
Severity: Major
Found in includes/Maintenance/Validators/IndexHasChangedValidator.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return Status::newGood( !$equivalent );
    Severity: Major
    Found in includes/Maintenance/Validators/IndexHasChangedValidator.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return true;
      Severity: Major
      Found in includes/Maintenance/Validators/Validator.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return Status::newGood( true );
        Severity: Major
        Found in includes/Maintenance/Validators/IndexHasChangedValidator.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

                            return Status::newFatal( "Cannot fetch aliases of the old index $indexToRemove" );
            Severity: Major
            Found in includes/Maintenance/Validators/SpecificAliasValidator.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return $term;
              Severity: Major
              Found in includes/NearMatchPicker.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return Status::newFatal(
                                "Replacement index was expected to be a real index: {$replacement}"
                            );
                Severity: Major
                Found in includes/Maintenance/Validators/IndexHasChangedValidator.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return new NestedIndexField( $name, $type, $this->searchConfig );
                  Severity: Major
                  Found in includes/Search/CirrusSearchIndexFieldFactory.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return new IntegerIndexField( $name, $type, $this->searchConfig );
                    Severity: Major
                    Found in includes/Search/CirrusSearchIndexFieldFactory.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return $this->updateIndices( $add, $remove );
                      Severity: Major
                      Found in includes/Maintenance/Validators/IndexAliasValidator.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return $status;
                        Severity: Major
                        Found in includes/Maintenance/Validators/SpecificAliasValidator.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return $status;
                          Severity: Major
                          Found in includes/Maintenance/ConfigUtils.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return $nonLocalCache;
                            Severity: Major
                            Found in includes/Util.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return;
                              Severity: Major
                              Found in includes/Query/FullTextQueryStringQueryBuilder.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return self::isSameString( $maybeDisplayTitle, $titleText )
                                            ? null
                                            : $maybeDisplayTitle;
                                Severity: Major
                                Found in includes/BuildDocument/ParserOutputPageProperties.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return true;
                                  Severity: Major
                                  Found in includes/Parser/QueryStringRegex/QueryStringRegexParser.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return true;
                                    Severity: Major
                                    Found in includes/Parser/QueryStringRegex/QueryStringRegexParser.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return $maybeDisplayTitle;
                                      Severity: Major
                                      Found in includes/BuildDocument/ParserOutputPageProperties.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return array_values( array_unique(
                                                    // @phan-suppress-next-line PhanCoalescingNeverNull
                                                    array_merge( $ns, $this->requiredNamespaces, $additionalRequiredNamespaces ?? [] ),
                                                    SORT_REGULAR
                                                ) );
                                        Severity: Major
                                        Found in includes/Parser/AST/ParsedQuery.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language