fix phpcs issues
This commit is contained in:
parent
8491589fbd
commit
9c5b2e3bac
3 changed files with 10 additions and 4 deletions
|
@ -67,7 +67,8 @@ class Place extends Model
|
|||
public function scopeNear(Builder $query, Point $point, $distance = 1000)
|
||||
{
|
||||
$field = DB::raw(
|
||||
sprintf("ST_Distance(%s.location, ST_GeogFromText('%s'))",
|
||||
sprintf(
|
||||
"ST_Distance(%s.location, ST_GeogFromText('%s'))",
|
||||
$this->getTable(),
|
||||
$point->toWKT()
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue