@@ -22,9 +22,9 @@ discard block |
||
| 22 | 22 | public function boot() |
| 23 | 23 | { |
| 24 | 24 | $configPath = __DIR__ . '/../../config/geocoder.php'; |
| 25 | - $this->publishes([$configPath => config_path('geocoder.php')], 'config'); |
|
| 25 | + $this->publishes([ $configPath => config_path('geocoder.php') ], 'config'); |
|
| 26 | 26 | $this->mergeConfigFrom($configPath, 'geocoder'); |
| 27 | - $this->app->singleton('geocoder', function () { |
|
| 27 | + $this->app->singleton('geocoder', function() { |
|
| 28 | 28 | return (new ProviderAndDumperAggregator) |
| 29 | 29 | ->registerProvidersFromConfig(collect(config('geocoder.providers'))); |
| 30 | 30 | }); |
@@ -37,6 +37,6 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | public function provides() : array |
| 39 | 39 | { |
| 40 | - return ['geocoder']; |
|
| 40 | + return [ 'geocoder' ]; |
|
| 41 | 41 | } |
| 42 | 42 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | env('GOOGLE_MAPS_LOCALE', 'en-US'), |
| 45 | 45 | env('GOOGLE_MAPS_API_KEY'), |
| 46 | 46 | ], |
| 47 | - GeoPlugin::class => [], |
|
| 47 | + GeoPlugin::class => [ ], |
|
| 48 | 48 | ], |
| 49 | 49 | ], |
| 50 | 50 | |
@@ -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 | |