wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub

Showing 718 of 718 total issues

Avoid too many return statements within this method.
Open

        return 0.0;
Severity: Major
Found in includes/Fallbacks/LangDetectFallbackMethod.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

                      return new LangWeightFunctionScoreBuilder( $config, $weight );
      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 SatuFunctionScoreBuilder( $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 FallbackStatus::addInterwikiResults( $crossLangResults,
                          $this->detectedLangWikiConfig->getWikiId() );
          Severity: Major
          Found in includes/Fallbacks/LangDetectFallbackMethod.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return $mresults->transformAndGetSingle( $this->searchContext->getResultsType(), self::MAINSEARCH_MSEARCH_KEY );
            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/CompletionSuggester.php - About 30 mins to fix

                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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language