wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub
includes/Search/CirrusSearchIndexFieldFactory.php

Summary

Maintainability
A
3 hrs
Test Coverage

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 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 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 new NestedIndexField( $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 IntegerIndexField( $name, $type, $this->searchConfig );
              Severity: Major
              Found in includes/Search/CirrusSearchIndexFieldFactory.php - About 30 mins to fix

                There are no issues that match your filters.

                Category
                Status