wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub

Showing 691 of 718 total issues

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

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

                                      return Status::newGood( !$equivalent );
                              Severity: Major
                              Found in includes/Maintenance/Validators/IndexHasChangedValidator.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return true;
                                Severity: Major
                                Found in includes/Maintenance/Validators/Validator.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return Status::newGood( true );
                                  Severity: Major
                                  Found in includes/Maintenance/Validators/IndexHasChangedValidator.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                            return Status::newGood( false );
                                    Severity: Major
                                    Found in includes/Maintenance/ConfigUtils.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return Status::newFatal( "Cannot fetch aliases of the old index $indexToRemove" );
                                      Severity: Major
                                      Found in includes/Maintenance/Validators/SpecificAliasValidator.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $term;
                                        Severity: Major
                                        Found in includes/NearMatchPicker.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language