netdudes/DataSourceryBundle

View on GitHub
DataSource/DataSourceBuilder.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method newRawField has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    private function newRawField($name, $type, $field, $alias, $options)
Severity: Minor
Found in DataSource/DataSourceBuilder.php - About 35 mins to fix

    Method addVectorField has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function addVectorField($name, $type, $filteringField, array $aliasedFields, array $options = [])
    Severity: Minor
    Found in DataSource/DataSourceBuilder.php - About 35 mins to fix

      Avoid too many return statements within this method.
      Open

                      return new SearchTextDataType();
      Severity: Major
      Found in DataSource/DataSourceBuilder.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return new PercentDataType();
        Severity: Major
        Found in DataSource/DataSourceBuilder.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return new EntityDataType();
          Severity: Major
          Found in DataSource/DataSourceBuilder.php - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status