creof/doctrine2-spatial

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

Summary

Maintainability
A
2 hrs
Test Coverage

Method testSTContainsWhereParameter has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSTContainsWhereParameter()
    {
        $lineString1 = new LineString(array(
            new Point(0, 0),
            new Point(10, 0),

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

    public function testSelectSTContains()
    {
        $lineString1 = new LineString(array(
            new Point(0, 0),
            new Point(10, 0),

Line exceeds 120 characters; contains 165 characters
Open

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

Line exceeds 120 characters; contains 177 characters
Open

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

Line exceeds 120 characters; contains 177 characters
Open

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

There are no issues that match your filters.

Category
Status