@@ -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')->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 | ); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $this->results = app('cache')->remember( |
| 98 | 98 | "geocoder-{$cacheKey}", |
| 99 | 99 | config('geocoder.cache-duration', 0), |
| 100 | - function () use ($query) { |
|
| 100 | + function() use ($query) { |
|
| 101 | 101 | return collect($this->aggregator->reverseQuery($query)); |
| 102 | 102 | } |
| 103 | 103 | ); |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $this->results = app('cache')->remember( |
| 117 | 117 | "geocoder-{$cacheKey}", |
| 118 | 118 | config('geocoder.cache-duration', 0), |
| 119 | - function () use ($value) { |
|
| 119 | + function() use ($value) { |
|
| 120 | 120 | return collect($this->aggregator->geocode($value)); |
| 121 | 121 | } |
| 122 | 122 | ); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $this->results = app('cache')->remember( |
| 131 | 131 | "geocoder-{$cacheKey}", |
| 132 | 132 | config('geocoder.cache-duration', 0), |
| 133 | - function () use ($latitude, $longitude) { |
|
| 133 | + function() use ($latitude, $longitude) { |
|
| 134 | 134 | return collect($this->aggregator->reverse($latitude, $longitude)); |
| 135 | 135 | } |
| 136 | 136 | ); |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | return $this; |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | - public function registerProviders(array $providers = []) : self |
|
| 162 | + public function registerProviders(array $providers = [ ]) : self |
|
| 163 | 163 | { |
| 164 | 164 | $this->aggregator->registerProviders($providers); |
| 165 | 165 | |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | |
| 193 | 193 | protected function getProvidersFromConfiguration(Collection $providers) : array |
| 194 | 194 | { |
| 195 | - $providers = $providers->map(function ($arguments, $provider) { |
|
| 195 | + $providers = $providers->map(function($arguments, $provider) { |
|
| 196 | 196 | $arguments = $this->getArguments($arguments, $provider); |
| 197 | 197 | $reflection = new ReflectionClass($provider); |
| 198 | 198 | |
@@ -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 | |