@@ -20,7 +20,7 @@ |
||
20 | 20 | 'en-US', |
21 | 21 | env('GOOGLE_MAPS_API_KEY'), |
22 | 22 | ], |
23 | - GeoPlugin::class => [], |
|
23 | + GeoPlugin::class => [ ], |
|
24 | 24 | ], |
25 | 25 | BingMaps::class => [ |
26 | 26 | 'en-US', |
@@ -24,9 +24,9 @@ discard block |
||
24 | 24 | public function boot() |
25 | 25 | { |
26 | 26 | $configPath = __DIR__ . '/../../config/geocoder.php'; |
27 | - $this->publishes([$configPath => config_path('geocoder.php')], 'config'); |
|
27 | + $this->publishes([ $configPath => config_path('geocoder.php') ], 'config'); |
|
28 | 28 | $this->mergeConfigFrom($configPath, 'geocoder'); |
29 | - $this->app->singleton('geocoder', function () { |
|
29 | + $this->app->singleton('geocoder', function() { |
|
30 | 30 | return (new ProviderAndDumperAggregator)->registerProvidersFromConfig(collect(config('geocoder.providers'))); |
31 | 31 | }); |
32 | 32 | } |
@@ -38,6 +38,6 @@ discard block |
||
38 | 38 | |
39 | 39 | public function provides() : array |
40 | 40 | { |
41 | - return ['geocoder']; |
|
41 | + return [ 'geocoder' ]; |
|
42 | 42 | } |
43 | 43 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $dumper = new $dumperClass; |
74 | 74 | $results = collect($this->results->all()); |
75 | 75 | |
76 | - return $results->map(function ($result) use ($dumper) { |
|
76 | + return $results->map(function($result) use ($dumper) { |
|
77 | 77 | return $dumper->dump($result); |
78 | 78 | }); |
79 | 79 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $this->results = app('cache')->remember( |
85 | 85 | "geocoder-{$cacheKey}", |
86 | 86 | config('geocoder.cache-duraction', 0), |
87 | - function () use ($query) { |
|
87 | + function() use ($query) { |
|
88 | 88 | return collect($this->aggregator->geocodeQuery($query)); |
89 | 89 | } |
90 | 90 | ); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $this->results = app('cache')->remember( |
99 | 99 | "geocoder-{$cacheKey}", |
100 | 100 | config('geocoder.cache-duraction', 0), |
101 | - function () use ($query) { |
|
101 | + function() use ($query) { |
|
102 | 102 | return collect($this->aggregator->reverseQuery($query)); |
103 | 103 | } |
104 | 104 | ); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $this->results = app('cache')->remember( |
118 | 118 | "geocoder-{$cacheKey}", |
119 | 119 | config('geocoder.cache-duraction', 0), |
120 | - function () use ($value) { |
|
120 | + function() use ($value) { |
|
121 | 121 | return collect($this->aggregator->geocode($value)); |
122 | 122 | } |
123 | 123 | ); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $this->results = app('cache')->remember( |
132 | 132 | "geocoder-{$cacheKey}", |
133 | 133 | config('geocoder.cache-duraction', 0), |
134 | - function () use ($latitude, $longitude) { |
|
134 | + function() use ($latitude, $longitude) { |
|
135 | 135 | return collect($this->aggregator->reverse($latitude, $longitude)); |
136 | 136 | } |
137 | 137 | ); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | return $this; |
161 | 161 | } |
162 | 162 | |
163 | - public function registerProviders(array $providers = []) : self |
|
163 | + public function registerProviders(array $providers = [ ]) : self |
|
164 | 164 | { |
165 | 165 | $this->aggregator->registerProviders($providers); |
166 | 166 | |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | |
194 | 194 | protected function getProvidersFromConfiguration(Collection $providers) : array |
195 | 195 | { |
196 | - $providers = $providers->map(function ($arguments, $provider) { |
|
196 | + $providers = $providers->map(function($arguments, $provider) { |
|
197 | 197 | $arguments = $this->getArguments($arguments, $provider); |
198 | 198 | $reflection = new ReflectionClass($provider); |
199 | 199 |