tests/CrEOF/Spatial/Tests/ORM/Query/AST/Functions/PostgreSql/STClosestPointTest.php
Method testSelectSTClosestPoint
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testSelectSTClosestPoint()
{
$ring1 = new LineString(array(
new Point(0, 0),
new Point(10, 0),
- Create a ticketCreate a ticket
Line exceeds 120 characters; contains 180 characters Open
Open
$query = $this->getEntityManager()->createQuery('SELECT p, ST_AsText(ST_ClosestPoint(p.polygon, ST_GeomFromText(:p1))) FROM CrEOF\Spatial\Tests\Fixtures\PolygonEntity p');
- Create a ticketCreate a ticket
- Exclude checks