@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $dumper = new $dumperClass; |
| 73 | 73 | $results = collect($this->results->all()); |
| 74 | 74 | |
| 75 | - return $results->map(function ($result) use ($dumper) { |
|
| 75 | + return $results->map(function($result) use ($dumper) { |
|
| 76 | 76 | return $dumper->dump($result); |
| 77 | 77 | }); |
| 78 | 78 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $this->results = app('cache')->store(config('geocoder.cache.store', null))->remember( |
| 84 | 84 | "geocoder-{$cacheKey}", |
| 85 | 85 | config('geocoder.cache.duration', 0), |
| 86 | - function () use ($query) { |
|
| 86 | + function() use ($query) { |
|
| 87 | 87 | return collect($this->aggregator->geocodeQuery($query)); |
| 88 | 88 | } |
| 89 | 89 | ); |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $this->results = app('cache')->store(config('geocoder.cache.store', null))->remember( |
| 100 | 100 | "geocoder-{$cacheKey}", |
| 101 | 101 | config('geocoder.cache.duration', 0), |
| 102 | - function () use ($query) { |
|
| 102 | + function() use ($query) { |
|
| 103 | 103 | return collect($this->aggregator->reverseQuery($query)); |
| 104 | 104 | } |
| 105 | 105 | ); |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $this->results = app('cache')->store(config('geocoder.cache.store', null))->remember( |
| 121 | 121 | "geocoder-{$cacheKey}", |
| 122 | 122 | config('geocoder.cache.duration', 0), |
| 123 | - function () use ($value) { |
|
| 123 | + function() use ($value) { |
|
| 124 | 124 | return collect($this->aggregator->geocode($value)); |
| 125 | 125 | } |
| 126 | 126 | ); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | $this->results = app('cache')->store(config('geocoder.cache.store', null))->remember( |
| 137 | 137 | "geocoder-{$cacheKey}", |
| 138 | 138 | config('geocoder.cache.duration', 0), |
| 139 | - function () use ($latitude, $longitude) { |
|
| 139 | + function() use ($latitude, $longitude) { |
|
| 140 | 140 | return collect($this->aggregator->reverse($latitude, $longitude)); |
| 141 | 141 | } |
| 142 | 142 | ); |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | return $this; |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | - public function registerProviders(array $providers = []) : self |
|
| 170 | + public function registerProviders(array $providers = [ ]) : self |
|
| 171 | 171 | { |
| 172 | 172 | $this->aggregator->registerProviders($providers); |
| 173 | 173 | |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | |
| 204 | 204 | protected function getProvidersFromConfiguration(Collection $providers) : array |
| 205 | 205 | { |
| 206 | - $providers = $providers->map(function ($arguments, $provider) { |
|
| 206 | + $providers = $providers->map(function($arguments, $provider) { |
|
| 207 | 207 | $arguments = $this->getArguments($arguments, $provider); |
| 208 | 208 | $reflection = new ReflectionClass($provider); |
| 209 | 209 | |