creof/doctrine2-spatial

View on GitHub
tests/CrEOF/Spatial/Tests/ORM/Query/AST/Functions/PostgreSql/STClosestPointTest.php

Summary

Maintainability
A
1 hr
Test Coverage

Method testSelectSTClosestPoint has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSelectSTClosestPoint()
    {
        $ring1 = new LineString(array(
            new Point(0, 0),
            new Point(10, 0),

Line exceeds 120 characters; contains 180 characters
Open

        $query  = $this->getEntityManager()->createQuery('SELECT p, ST_AsText(ST_ClosestPoint(p.polygon, ST_GeomFromText(:p1))) FROM CrEOF\Spatial\Tests\Fixtures\PolygonEntity p');

There are no issues that match your filters.

Category
Status