@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | protected function setFlatten(Collection $regions) |
| 21 | 21 | { |
| 22 | - $regions->each(function (RegionModel $region) { |
|
| 22 | + $regions->each(function(RegionModel $region) { |
|
| 23 | 23 | $this->regions->add($this->flatten($region)); |
| 24 | 24 | }); |
| 25 | 25 | $this->regions = $this->regions->flatten(5); |
@@ -67,11 +67,11 @@ discard block |
||
| 67 | 67 | protected function addMacro(): void |
| 68 | 68 | { |
| 69 | 69 | if (class_exists(SimpleService::class)) { |
| 70 | - SimpleService::macro('queryDistance', function (SimpleService $service, float $lat, float $lng, float $maxDistance = 50, string $geoColumn) { |
|
| 70 | + SimpleService::macro('queryDistance', function(SimpleService $service, float $lat, float $lng, float $maxDistance = 50, string $geoColumn) { |
|
| 71 | 71 | $distanceService = new DistanceService; |
| 72 | 72 | return $distanceService->queryDistance($service, $lat, $lng, $maxDistance, $geoColumn); |
| 73 | 73 | }); |
| 74 | - SimpleService::macro('selectDistance', function (SimpleService $service, float $lat, float $lng, string $geoColumn, string $alias) { |
|
| 74 | + SimpleService::macro('selectDistance', function(SimpleService $service, float $lat, float $lng, string $geoColumn, string $alias) { |
|
| 75 | 75 | $distanceService = new DistanceService; |
| 76 | 76 | return $distanceService->selectDistance($service, $lat, $lng, $geoColumn, $alias); |
| 77 | 77 | }); |
@@ -87,11 +87,11 @@ discard block |
||
| 87 | 87 | protected function addService(): void |
| 88 | 88 | { |
| 89 | 89 | if (class_exists(SimpleService::class)) { |
| 90 | - SimpleService::macro('queryDistance', function (SimpleService $service, float $lat, float $lng, float $maxDistance = 50, string $geoColumn) { |
|
| 90 | + SimpleService::macro('queryDistance', function(SimpleService $service, float $lat, float $lng, float $maxDistance = 50, string $geoColumn) { |
|
| 91 | 91 | $distanceService = new DistanceService; |
| 92 | 92 | return $distanceService->queryDistance($service, $lat, $lng, $maxDistance, $geoColumn); |
| 93 | 93 | }); |
| 94 | - SimpleService::macro('selectDistance', function (SimpleService $service, float $lat, float $lng, string $geoColumn) { |
|
| 94 | + SimpleService::macro('selectDistance', function(SimpleService $service, float $lat, float $lng, string $geoColumn) { |
|
| 95 | 95 | $distanceService = new DistanceService; |
| 96 | 96 | return $distanceService->selectDistance($service, $lat, $lng, $geoColumn); |
| 97 | 97 | }); |