wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub

Showing 718 of 718 total issues

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

                Avoid too many return statements within this method.
                Open

                                return new NumberIndexField( $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 DatetimeIndexField( $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 BooleanIndexField( $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 false;
                      Severity: Major
                      Found in includes/Maintenance/AnalysisConfigBuilder.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return new ShortTextIndexField( $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 true;
                          Severity: Major
                          Found in includes/Hooks.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

                                      return new NullIndexField();
                              Severity: Major
                              Found in includes/Search/CirrusSearchIndexFieldFactory.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

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

                                  Avoid too many return statements within this method.
                                  Open

                                                  return false;
                                  Severity: Major
                                  Found in includes/Maintenance/AnalysisConfigBuilder.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

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

                                      Avoid too many return statements within this method.
                                      Open

                                              return !$this->isFull();
                                      Severity: Major
                                      Found in includes/Search/CompletionResultsCollector.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return Status::newGood( $option );
                                        Severity: Major
                                        Found in includes/Maintenance/ConfigUtils.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language