wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub

Showing 691 of 718 total issues

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

                            Avoid too many return statements within this method.
                            Open

                                        return $this->failure( $e, $connection );
                            Severity: Major
                            Found in includes/ElasticsearchIntermediary.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

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

                                Avoid too many return statements within this method.
                                Open

                                                return [
                                                    'escaped' => self::switchSearchToExactForWildcards( $searchContext, $term ),
                                                    'nonAll' => self::switchSearchToExactForWildcards( $searchContext, $term )
                                                ];
                                Severity: Major
                                Found in includes/Query/FullTextQueryStringQueryBuilder.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return $this->success( $resultsTransformer !== null ? $resultsTransformer( $multiResultSet ) : $multiResultSet, $connection );
                                  Severity: Major
                                  Found in includes/ElasticsearchIntermediary.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

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

                                      Avoid too many return statements within this method.
                                      Open

                                                  return $siz + strlen( $str );
                                      Severity: Major
                                      Found in includes/BuildDocument/DocumentSizeLimiter.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                    return $clean;
                                        Severity: Major
                                        Found in includes/BuildDocument/ParserOutputPageProperties.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language