njbarrett/laravel-postgis

View on GitHub
src/Geometries/Geometry.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method getWKTClass has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function getWKTClass($value)
    {
        $left = strpos($value, '(');
        $type = trim(substr($value, 0, $left));

Severity: Minor
Found in src/Geometries/Geometry.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                    return MultiPolygon::class;
    Severity: Major
    Found in src/Geometries/Geometry.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return MultiLineString::class;
      Severity: Major
      Found in src/Geometries/Geometry.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return GeometryCollection::class;
        Severity: Major
        Found in src/Geometries/Geometry.php - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status