creof/doctrine2-spatial

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

Summary

Maintainability
A
1 hr
Test Coverage

Method testSelectSTCentroid has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSelectSTCentroid()
    {
        $lineString1 = new LineString(array(
            new Point(6, 6),
            new Point(10, 6),

Line exceeds 120 characters; contains 154 characters
Open

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

There are no issues that match your filters.

Category