wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub

Showing 718 of 718 total issues

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 Status::newGood();
    Severity: Major
    Found in includes/DataSender.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 true;
        Severity: Major
        Found in includes/Job/CheckerJob.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return [
                          Status::newFatal( 'cirrussearch-backend-error' ),
                          $formattedMessage
                      ];
          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-failed-send-data' );
            Severity: Major
            Found in includes/DataSender.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

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

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