wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub

Showing 691 of 718 total issues

Avoid too many return statements within this method.
Open

        return $this->getSuggestions( $search, $variants, $this->config );
Severity: Major
Found in includes/CirrusSearch.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return "unknown";
    Severity: Major
    Found in includes/ElasticaErrorHandler.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return [
                  Status::newFatal( 'cirrussearch-backend-error' ),
                  self::formatMessage( $cause )
              ];
      Severity: Major
      Found in includes/ElasticaErrorHandler.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return [ $page, $redirects ];
        Severity: Major
        Found in includes/Updater.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return true;
          Severity: Major
          Found in includes/Job/CheckerJob.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return $this->config->get( 'CirrusSearchTalkNamespaceWeight' );
            Severity: Major
            Found in includes/Search/Rescore/NamespacesFunctionScoreBuilder.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return new NamespacesFunctionScoreBuilder( $config, $this->context->getNamespaces(), $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 $builder;
                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->config->get( 'CirrusSearchDefaultNamespaceWeight' ) *
                                 $this->config->get( 'CirrusSearchTalkNamespaceWeight' );
                  Severity: Major
                  Found in includes/Search/Rescore/NamespacesFunctionScoreBuilder.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return FallbackStatus::noSuggestion();
                    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::newFatal( 'cirrussearch-backend-error' ) );
                      Severity: Major
                      Found in includes/Searcher.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return new ScriptScoreFunctionScoreBuilder( $config, $weight, $func['script'] );
                        Severity: Major
                        Found in includes/Search/Rescore/FunctionScoreChain.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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language