wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub

Showing 691 of 718 total issues

Avoid too many return statements within this method.
Open

        return $this->prefixSearchRequestBuilder->setLimit( $limit )
            // collect all results up to $limit, $this->offset is the offset the client wants
            // not the offset in prefix search results.
            ->setOffset( 0 )
            ->build();
Severity: Major
Found in includes/CompletionSuggester.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

                  return false;
      Severity: Major
      Found in includes/Search/Fetch/BaseHighlightedField.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return false;
        Severity: Major
        Found in includes/Search/Fetch/BaseHighlightedField.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return true;
          Severity: Major
          Found in includes/Search/Fetch/BaseHighlightedField.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return $string;
            Severity: Major
            Found in includes/Search/Escaper.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return false;
              Severity: Major
              Found in includes/Search/Fetch/BaseHighlightedField.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return '"\\~' . $matches[ 'trailing' ];
                Severity: Major
                Found in includes/Search/Escaper.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return $work();
                  Severity: Major
                  Found in includes/Searcher.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

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

                      Avoid too many return statements within this method.
                      Open

                                      return new CustomFieldFunctionScoreBuilder( $config, $weight, $func['params'] );
                      Severity: Major
                      Found in includes/Search/Rescore/FunctionScoreChain.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return new GeoMeanFunctionScoreBuilder( $config, $weight, $func['params'] );
                        Severity: Major
                        Found in includes/Search/Rescore/FunctionScoreChain.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return $mainSnippet;
                          Severity: Major
                          Found in includes/Search/Result.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return $responses->dumpResults( $description );
                            Severity: Major
                            Found in includes/Searcher.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

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

                                Avoid too many return statements within this method.
                                Open

                                                return new LogScaleBoostFunctionScoreBuilder( $config, $weight, $func['params'] );
                                Severity: Major
                                Found in includes/Search/Rescore/FunctionScoreChain.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return $search;
                                  Severity: Major
                                  Found in includes/Fallbacks/IndexLookupFallbackMethod.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return new LogMultFunctionScoreBuilder( $config, $weight, $func['params'] );
                                    Severity: Major
                                    Found in includes/Search/Rescore/FunctionScoreChain.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return new TermBoostScoreBuilder( $config, $weight, $func['params'] );
                                      Severity: Major
                                      Found in includes/Search/Rescore/FunctionScoreChain.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return $this->maybeSearchAndRewrite( $context, $this->query, $suggestedQuery );
                                        Severity: Major
                                        Found in includes/Fallbacks/IndexLookupFallbackMethod.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language