@@ -56,11 +56,11 @@ |
||
56 | 56 | protected function bindMacroService(): void |
57 | 57 | { |
58 | 58 | if (class_exists(SimpleService::class)) { |
59 | - SimpleService::macro('queryDistance', function (SimpleService $service, float $lat, float $lng, float $maxDistance = 50, string $geoColumn) { |
|
59 | + SimpleService::macro('queryDistance', function(SimpleService $service, float $lat, float $lng, float $maxDistance = 50, string $geoColumn) { |
|
60 | 60 | $distanceService = new DistanceService; |
61 | 61 | return $distanceService->queryDistance($service, $lat, $lng, $maxDistance, $geoColumn); |
62 | 62 | }); |
63 | - SimpleService::macro('selectDistance', function (SimpleService $service, float $lat, float $lng, string $geoColumn, string $alias) { |
|
63 | + SimpleService::macro('selectDistance', function(SimpleService $service, float $lat, float $lng, string $geoColumn, string $alias) { |
|
64 | 64 | $distanceService = new DistanceService; |
65 | 65 | return $distanceService->selectDistance($service, $lat, $lng, $geoColumn, $alias); |
66 | 66 | }); |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $distanceRaw = $this->distanceRaw($lat, $lng, $column); |
58 | 58 | $service->appendQuery([ |
59 | 59 | [ |
60 | - function (Builder $query) use ($distanceRaw, $maxDistance) { |
|
60 | + function(Builder $query) use ($distanceRaw, $maxDistance) { |
|
61 | 61 | $query->whereRaw("$distanceRaw <= $maxDistance"); |
62 | 62 | } |
63 | 63 | ] |