Skip to content

Commit 680532d

Browse files
committed
"Generic.Files.LineLength.TooLong" removed #60
Code cleaned
1 parent f804cd7 commit 680532d

File tree

77 files changed

+2
-296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2
-296
lines changed

lib/LongitudeOne/Spatial/PHP/Types/AbstractMultiPolygon.php

-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ public function addPolygon($polygon): self
6060
}
6161

6262
if (!is_array($polygon)) {
63-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6463
throw new InvalidValueException('AbstractMultiPolygon::addPolygon only accepts AbstractPolygon or an array as parameter');
65-
// phpcs:enable
6664
}
6765

6866
$this->polygons[] = $this->validatePolygonValue($polygon);

quality/php-code-sniffer/phpcs.xml

+2-6
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,10 @@
104104
</rule>
105105

106106
<!--
107-
Lines should not longer than 120 (warning) and
108-
must not be longer than 120 (error).
107+
Lines length rule excluded!
109108
-->
110109
<rule ref="Generic.Files.LineLength">
111-
<properties>
112-
<property name="lineLimit" value="120"/>
113-
<property name="absoluteLineLimit" value="120"/>
114-
</properties>
110+
<exclude name="Generic.Files.LineLength.TooLong"/>
115111
</rule>
116112

117113
<!--

tests/LongitudeOne/Spatial/Tests/Doctrine/ConnectionParameters.php

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323

2424
class ConnectionParameters
2525
{
26-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
27-
2826
/**
2927
* Return common connection parameters.
3028
*

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/MySql/SpBufferTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ public function testSelectSpBuffer()
6464
$this->getEntityManager()->clear();
6565

6666
$query = $this->getEntityManager()->createQuery(
67-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6867
'SELECT p, ST_AsText(Mysql_Buffer(p.point, 4, Mysql_BufferStrategy(:p))) FROM LongitudeOne\Spatial\Tests\Fixtures\PointEntity p'
69-
// phpcs:enable
7068
);
7169

7270
$query->setParameter('p', 'point_square', 'string');

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/MySql/SpDistanceTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ public function testSelectStDistanceGeometry()
6666
$this->getEntityManager()->clear();
6767

6868
$query = $this->getEntityManager()->createQuery(
69-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
7069
'SELECT p, MySQL_Distance(p.point, ST_GeomFromText(:p1)) FROM LongitudeOne\Spatial\Tests\Fixtures\PointEntity p'
71-
// phpcs:enable
7270
);
7371

7472
$query->setParameter('p1', 'POINT(0 0)', 'string');

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/MySql/SpLineStringTest.php

-4
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ public function testPredicate()
6363
$this->getEntityManager()->clear();
6464

6565
$query = $this->getEntityManager()->createQuery(
66-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6766
'SELECT l FROM LongitudeOne\Spatial\Tests\Fixtures\LineStringEntity l WHERE MySql_LineString(MySql_Point(:x, :x), MySql_Point(:y, :y)) = l.lineString'
68-
// phpcs:enable
6967
);
7068
$query->setParameter('x', 0, 'integer');
7169
$query->setParameter('y', 10, 'integer');
@@ -88,9 +86,7 @@ public function testSelect()
8886
$this->getEntityManager()->clear();
8987

9088
$query = $this->getEntityManager()->createQuery(
91-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
9289
'SELECT l, ST_AsText(MySql_LineString(MySql_Point(:x, :y), MySql_Point(:y, :x))) FROM LongitudeOne\Spatial\Tests\Fixtures\LineStringEntity l'
93-
// phpcs:enable
9490
);
9591
$query->setParameter('x', 1, 'integer');
9692
$query->setParameter('y', 2, 'integer');

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/MySql/SpMbrContainsTest.php

-6
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ public function testContainsWhereParameter()
6464
$this->getEntityManager()->clear();
6565

6666
$query = $this->getEntityManager()->createQuery(
67-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6867
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE MySql_MBRContains(p.polygon, ST_GeomFromText(:p)) = 1'
69-
// phpcs:enable
7068
);
7169

7270
$query->setParameter('p', 'POINT(6 6)', 'string');
@@ -79,9 +77,7 @@ public function testContainsWhereParameter()
7977
$this->getEntityManager()->clear();
8078

8179
$query = $this->getEntityManager()->createQuery(
82-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
8380
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE MySQL_MBRContains(p.polygon, ST_GeomFromText(:p)) = 1'
84-
// phpcs:enable
8581
);
8682
$query->setParameter('p', 'POINT(2 2)', 'string');
8783
$result = $query->getResult();
@@ -105,9 +101,7 @@ public function testSelectContains()
105101
$this->getEntityManager()->clear();
106102

107103
$query = $this->getEntityManager()->createQuery(
108-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
109104
'SELECT p, MySql_MBRContains(p.polygon, ST_GeomFromText(:p1)), MySql_MBRContains(p.polygon, ST_GeomFromText(:p2)) FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p'
110-
// phpcs:enable
111105
);
112106

113107
$query->setParameter('p1', 'POINT(2 2)', 'string');

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/MySql/SpMbrDisjointTest.php

-6
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ public function testMbrDisjointWhereParameter()
6565
$this->getEntityManager()->clear();
6666

6767
$query = $this->getEntityManager()->createQuery(
68-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6968
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE MySql_MBRDisjoint(p.polygon, ST_GeomFromText(:p)) = 1'
70-
// phpcs:enable
7169
);
7270

7371
$query->setParameter('p', 'POLYGON((5 5,7 5,7 7,5 7,5 5))', 'string');
@@ -79,9 +77,7 @@ public function testMbrDisjointWhereParameter()
7977
$this->getEntityManager()->clear();
8078

8179
$query = $this->getEntityManager()->createQuery(
82-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
8380
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE MySql_MBRDisjoint(p.polygon, ST_GeomFromText(:p)) = 1'
84-
// phpcs:enable
8581
);
8682

8783
$query->setParameter('p', 'POLYGON((15 15,17 15,17 17,15 17,15 15))', 'string');
@@ -107,9 +103,7 @@ public function testSelectMbrDisjoint()
107103
$this->getEntityManager()->clear();
108104

109105
$query = $this->getEntityManager()->createQuery(
110-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
111106
'SELECT p, MySql_MBRDisjoint(p.polygon, ST_GeomFromText(:p1)) FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p'
112-
// phpcs:enable
113107
);
114108

115109
$query->setParameter('p1', 'POLYGON((5 5,5 7,7 7,7 5,5 5))', 'string');

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/MySql/SpMbrEqualsTest.php

-6
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ public function testMbrEqualsWhereParameter()
6464
$this->getEntityManager()->clear();
6565

6666
$query = $this->getEntityManager()->createQuery(
67-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6867
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE MySql_MBREquals(p.polygon, ST_GeomFromText(:p)) = 1'
69-
// phpcs:enable
7068
);
7169

7270
$query->setParameter('p', 'LINESTRING(5 5,7 7,6 5)', 'string');
@@ -78,9 +76,7 @@ public function testMbrEqualsWhereParameter()
7876
$this->getEntityManager()->clear();
7977

8078
$query = $this->getEntityManager()->createQuery(
81-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
8279
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE MySql_MBREquals(p.polygon, ST_GeomFromText(:p)) = 1'
83-
// phpcs:enable
8480
);
8581

8682
$query->setParameter('p', 'LINESTRING(15 15,17 17)', 'string');
@@ -105,9 +101,7 @@ public function testSelectMbrEquals()
105101
$this->getEntityManager()->clear();
106102

107103
$query = $this->getEntityManager()->createQuery(
108-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
109104
'SELECT p, MySql_MBREquals(p.polygon, ST_GeomFromText(:p1)) FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p'
110-
// phpcs:enable
111105
);
112106

113107
$query->setParameter('p1', 'LINESTRING(5 5,7 7,6 5)', 'string');

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/MySql/SpMbrIntersectsTest.php

-6
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ public function testSelectStDisjoint()
6464
$this->getEntityManager()->clear();
6565

6666
$query = $this->getEntityManager()->createQuery(
67-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6867
'SELECT p, MySQL_MbrIntersects(p.polygon, ST_GeomFromText(:p1)) FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p'
69-
// phpcs:enable
7068
);
7169

7270
$query->setParameter('p1', 'POLYGON((5 5,7 5,7 7,5 7,5 5))', 'string');
@@ -97,9 +95,7 @@ public function testStDisjointWhereParameter()
9795
$this->getEntityManager()->clear();
9896

9997
$query = $this->getEntityManager()->createQuery(
100-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
10198
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE MySQL_MbrIntersects(p.polygon, ST_GeomFromText(:p1)) = true'
102-
// phpcs:enable
10399
);
104100

105101
$query->setParameter('p1', 'POLYGON((5 5,7 5,7 7,5 7,5 5))', 'string');
@@ -112,9 +108,7 @@ public function testStDisjointWhereParameter()
112108
$this->getEntityManager()->clear();
113109

114110
$query = $this->getEntityManager()->createQuery(
115-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
116111
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE MySQL_MbrIntersects(p.polygon, ST_GeomFromText(:p1)) = true'
117-
// phpcs:enable
118112
);
119113

120114
$query->setParameter('p1', 'POLYGON((15 15,17 15,17 17,15 17,15 15))', 'string');

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/MySql/SpMbrOverlapsTest.php

-4
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ public function testFunctionInPredicate()
6565
$this->getEntityManager()->clear();
6666

6767
$query = $this->getEntityManager()->createQuery(
68-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6968
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE MySQL_MbrOverlaps(p.polygon, ST_GeomFromText(:p)) = true'
70-
// phpcs:enable
7169
);
7270
$query->setParameter('p', 'POLYGON((4 4, 4 12, 12 12, 12 4, 4 4))', 'string');
7371
$result = $query->getResult();
@@ -92,9 +90,7 @@ public function testFunctionInSelect()
9290
$this->getEntityManager()->clear();
9391

9492
$query = $this->getEntityManager()->createQuery(
95-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
9693
'SELECT p, MySQL_MbrOverlaps(p.polygon, ST_GeomFromText(:p)) FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p'
97-
// phpcs:enable
9894
);
9995
$query->setParameter('p', 'POLYGON((0 0, 0 12, 12 12, 12 0, 0 0))', 'string');
10096
$result = $query->getResult();

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/MySql/SpMbrTouchesTest.php

-4
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ public function testFunctionInPredicate()
6363
$this->getEntityManager()->clear();
6464

6565
$query = $this->getEntityManager()->createQuery(
66-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6766
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE MySQL_MbrTouches(p.polygon, ST_GeomFromText(:p)) = true'
68-
// phpcs:enable
6967
);
7068
$query->setParameter('p', 'LINESTRING(0 0, 0 10)', 'string');
7169
$result = $query->getResult();
@@ -87,9 +85,7 @@ public function testFunctionInSelect()
8785
$this->getEntityManager()->clear();
8886

8987
$query = $this->getEntityManager()->createQuery(
90-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
9188
'SELECT MySQL_MbrTouches(p.polygon, ST_GeomFromText(:p)) FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p'
92-
// phpcs:enable
9389
);
9490
$query->setParameter('p', 'LINESTRING(0 0, 0 10)', 'string');
9591
$result = $query->getResult();

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/MySql/SpMbrWithinTest.php

-4
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ public function testFunctionInPredicate()
6565
$this->getEntityManager()->clear();
6666

6767
$query = $this->getEntityManager()->createQuery(
68-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6968
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE MySQL_MbrWithin(p.polygon, ST_GeomFromText(:p)) = true'
70-
// phpcs:enable
7169
);
7270
$query->setParameter('p', 'POLYGON((4 4, 4 12, 12 12, 12 4, 4 4))', 'string');
7371
$result = $query->getResult();
@@ -91,9 +89,7 @@ public function testFunctionInSelect()
9189
$this->getEntityManager()->clear();
9290

9391
$query = $this->getEntityManager()->createQuery(
94-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
9592
'SELECT p, MySQL_MbrWithin(p.polygon, ST_GeomFromText(:p)) FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p'
96-
// phpcs:enable
9793
);
9894
$query->setParameter('p', 'POLYGON((0 0, 0 12, 12 12, 12 0, 0 0))', 'string');
9995
$result = $query->getResult();

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/MySql/SpPointTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ public function testSelect()
6262
$this->getEntityManager()->clear();
6363

6464
$query = $this->getEntityManager()->createQuery(
65-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6665
'SELECT t, ST_AsText(MySql_Point(:x, :y)) FROM LongitudeOne\Spatial\Tests\Fixtures\PointEntity t'
67-
// phpcs:enable
6866
);
6967
$query->setParameter('x', 1, 'integer');
7068
$query->setParameter('y', 2, 'integer');

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/PostgreSql/SpAzimuthTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ public function testFunction()
6464
$this->getEntityManager()->clear();
6565

6666
$query = $this->getEntityManager()->createQuery(
67-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6867
'SELECT p, PgSql_Azimuth(p.point, ST_GeomFromText(:p)) FROM LongitudeOne\Spatial\Tests\Fixtures\PointEntity p'
69-
// phpcs:enable
7068
);
7169
$query->setParameter('p', 'POINT(0 5)');
7270
$result = $query->getResult();

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/PostgreSql/SpClosestPointTest.php

-4
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ public function testFunctionInSelect()
6868
$this->getEntityManager()->clear();
6969

7070
$query = $this->getEntityManager()->createQuery(
71-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
7271
'SELECT l, ST_AsText(PgSql_ClosestPoint(l.lineString, ST_GeomFromText(:p))) FROM LongitudeOne\Spatial\Tests\Fixtures\LineStringEntity l'
73-
// phpcs:enable
7472
);
7573
$query->setParameter('p', 'POINT(4 3)');
7674
$result = $query->getResult();
@@ -98,9 +96,7 @@ public function testFunctionWithPolygonInSelect()
9896
$this->getEntityManager()->clear();
9997

10098
$query = $this->getEntityManager()->createQuery(
101-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
10299
'SELECT p, ST_AsText(PgSql_ClosestPoint(p.polygon, ST_GeomFromText(:p1))) FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p'
103-
// phpcs:enable
104100
);
105101

106102
$query->setParameter('p1', 'POINT(2 2)', 'string');

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/PostgreSql/SpCollectTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ public function testFunctionSelect()
7474
$this->getEntityManager()->clear();
7575

7676
$query = $this->getEntityManager()->createQuery(
77-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
7877
'SELECT ST_AsText(PgSql_Collect(p.point, ST_GeomFromText(:p))) FROM LongitudeOne\Spatial\Tests\Fixtures\PointEntity p'
79-
// phpcs:enable
8078
);
8179
$query->setParameter('p', 'POINT(-2 3)');
8280
$result = $query->getResult();

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/PostgreSql/SpContainsProperlyTest.php

-4
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ public function testFunctionInPredicate()
6464
$this->getEntityManager()->clear();
6565

6666
$query = $this->getEntityManager()->createQuery(
67-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6867
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE PgSql_ContainsProperly(p.polygon, ST_GeomFromText(:p1)) = true'
69-
// phpcs:enable
7068
);
7169

7270
$query->setParameter('p1', 'LINESTRING(5 5,7 5,7 7,5 7,5 5)', 'string');
@@ -90,9 +88,7 @@ public function testFunctionInSelect()
9088
$this->getEntityManager()->clear();
9189

9290
$query = $this->getEntityManager()->createQuery(
93-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
9491
'SELECT p, PgSql_ContainsProperly(p.polygon, ST_GeomFromText(:p1)) FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p'
95-
// phpcs: enable
9692
);
9793

9894
$query->setParameter('p1', 'LINESTRING(5 5,7 5,7 7,5 7,5 5)', 'string');

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/PostgreSql/SpCoveredByTest.php

-4
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ public function testFunctionInPredicate()
6363
$this->getEntityManager()->clear();
6464

6565
$query = $this->getEntityManager()->createQuery(
66-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6766
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE PgSql_CoveredBy(ST_GeomFromText(:p1), p.polygon) = true'
68-
// phpcs:enable
6967
);
7068
$query->setParameter('p1', 'LINESTRING(4 4,8 8)', 'string');
7169
$result = $query->getResult();
@@ -87,9 +85,7 @@ public function testFunctionInSelect()
8785
$this->getEntityManager()->clear();
8886

8987
$query = $this->getEntityManager()->createQuery(
90-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
9188
'SELECT p, PgSql_CoveredBy(ST_GeomFromText(:p1), p.polygon) FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p'
92-
// phpcs: enable
9389
);
9490
$query->setParameter('p1', 'LINESTRING(4 4,8 8)', 'string');
9591
$result = $query->getResult();

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/PostgreSql/SpCoversTest.php

-4
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ public function testFunctionInPredicate()
6363
$this->getEntityManager()->clear();
6464

6565
$query = $this->getEntityManager()->createQuery(
66-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6766
'SELECT p FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p WHERE PgSql_Covers(p.polygon, ST_GeomFromText(:p1)) = true'
68-
// phpcs:enable
6967
);
7068
$query->setParameter('p1', 'LINESTRING(4 4,8 8)', 'string');
7169
$result = $query->getResult();
@@ -87,9 +85,7 @@ public function testFunctionInSelect()
8785
$this->getEntityManager()->clear();
8886

8987
$query = $this->getEntityManager()->createQuery(
90-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
9188
'SELECT p, PgSql_Covers(p.polygon, ST_GeomFromText(:l)) FROM LongitudeOne\Spatial\Tests\Fixtures\PolygonEntity p'
92-
// phpcs: enable
9389
);
9490
$query->setParameter('l', 'LINESTRING(4 4,8 8)', 'string');
9591
$result = $query->getResult();

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/PostgreSql/SpDWithinTest.php

-4
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ public function testSelectGeography()
6363
$dallas = $this->persistDallasGeography();
6464

6565
$query = $this->getEntityManager()->createQuery(
66-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6766
'SELECT g, PgSql_DWithin(g.geography, PgSql_GeographyFromText(:p), :d, :spheroid) FROM LongitudeOne\Spatial\Tests\Fixtures\GeographyEntity g'
68-
// phpcs:enable
6967
);
7068

7169
$query->setParameter('p', 'POINT(-89.4 43.066667)', 'string');
@@ -95,9 +93,7 @@ public function testSelectGeometry()
9593
$dallas = $this->persistDallasGeometry();
9694

9795
$query = $this->getEntityManager()->createQuery(
98-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
9996
'SELECT p, PgSql_DWithin(p.point, ST_GeomFromText(:p), :d) FROM LongitudeOne\Spatial\Tests\Fixtures\PointEntity p'
100-
// phpcs:enable
10197
);
10298

10399
$query->setParameter('p', 'POINT(-89.4 43.066667)', 'string');

tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/PostgreSql/SpDistanceSphereTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ public function testSelectStDistanceSphereGeometry()
6363
$dallas = $this->persistDallasGeometry();
6464

6565
$query = $this->getEntityManager()->createQuery(
66-
// phpcs:disable Generic.Files.LineLength.MaxExceeded
6766
'SELECT p, PgSql_Distance_Sphere(p.point, ST_GeomFromText(:p)) FROM LongitudeOne\Spatial\Tests\Fixtures\PointEntity p'
68-
// phpcs:enable
6967
);
7068

7169
$query->setParameter('p', 'POINT(-89.4 43.066667)', 'string');

0 commit comments

Comments
 (0)