fix phpcs issues

This commit is contained in:
Jonny Barnes 2017-09-14 09:49:18 +01:00
parent 8491589fbd
commit 9c5b2e3bac
3 changed files with 10 additions and 4 deletions

View file

@ -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()
)