Skip to content

Commit db5696b

Browse files
committed
Minor typos.
1 parent 65f6ab1 commit db5696b

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/Eloquent/SpatialTrait.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
/**
1111
* Trait SpatialTrait
1212
*
13-
* @package Grimzy\LaravelMysqlSpatial\Eloquent
14-
*
1513
* @method static distance($geometryColumn, $geometry, $distance)
1614
* @method static distanceExcludingSelf($geometryColumn, $geometry, $distance)
1715
* @method static distanceSphere($geometryColumn, $geometry, $distance)
@@ -189,4 +187,4 @@ public function scopeDoesTouch($query, $geometryColumn, $geometry)
189187
{
190188
return $this->scopeComparison($query, $geometryColumn, $geometry, 'touches');
191189
}
192-
}
190+
}

tests/Unit/Eloquent/SpatialTraitTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function testInsertUpdateGeometryCollectionHasCorrectSql()
194194
public function testScopeDistance()
195195
{
196196
$point = new Point(1, 2);
197-
$query = TestModel::Distance('point', $point, 10);
197+
$query = TestModel::distance('point', $point, 10);
198198

199199
$this->assertInstanceOf(\Grimzy\LaravelMysqlSpatial\Eloquent\Builder::class, $query);
200200
$q = $query->getQuery();
@@ -205,7 +205,7 @@ public function testScopeDistance()
205205
public function testScopeDistanceExcludingSelf()
206206
{
207207
$point = new Point(1, 2);
208-
$query = TestModel::DistanceExcludingSelf('point', $point, 10);
208+
$query = TestModel::distanceExcludingSelf('point', $point, 10);
209209

210210
$this->assertInstanceOf(\Grimzy\LaravelMysqlSpatial\Eloquent\Builder::class, $query);
211211
$q = $query->getQuery();
@@ -217,7 +217,7 @@ public function testScopeDistanceExcludingSelf()
217217
public function testScopeDistanceSphere()
218218
{
219219
$point = new Point(1, 2);
220-
$query = TestModel::DistanceSphere('point', $point, 10);
220+
$query = TestModel::distanceSphere('point', $point, 10);
221221

222222
$this->assertInstanceOf(\Grimzy\LaravelMysqlSpatial\Eloquent\Builder::class, $query);
223223
$q = $query->getQuery();
@@ -228,7 +228,7 @@ public function testScopeDistanceSphere()
228228
public function testScopeDistanceSphereExcludingSelf()
229229
{
230230
$point = new Point(1, 2);
231-
$query = TestModel::DistanceSphereExcludingSelf('point', $point, 10);
231+
$query = TestModel::distanceSphereExcludingSelf('point', $point, 10);
232232

233233
$this->assertInstanceOf(\Grimzy\LaravelMysqlSpatial\Eloquent\Builder::class, $query);
234234
$q = $query->getQuery();
@@ -240,7 +240,7 @@ public function testScopeDistanceSphereExcludingSelf()
240240
public function testScopeDistanceValue()
241241
{
242242
$point = new Point(1, 2);
243-
$query = TestModel::DistanceValue('point', $point);
243+
$query = TestModel::distanceValue('point', $point);
244244

245245
$this->assertInstanceOf(\Grimzy\LaravelMysqlSpatial\Eloquent\Builder::class, $query);
246246
$q = $query->getQuery();
@@ -266,7 +266,7 @@ public function testScopeDistanceValueWithSelect()
266266
public function testScopeDistanceSphereValue()
267267
{
268268
$point = new Point(1, 2);
269-
$query = TestModel::DistanceSphereValue('point', $point);
269+
$query = TestModel::distanceSphereValue('point', $point);
270270

271271
$this->assertInstanceOf(\Grimzy\LaravelMysqlSpatial\Eloquent\Builder::class, $query);
272272
$q = $query->getQuery();

0 commit comments

Comments
 (0)