@@ -29,7 +29,7 @@ |
||
| 29 | 29 | protected $results; |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * @return array |
|
| 32 | + * @return \Geocoder\Model\Address[] |
|
| 33 | 33 | */ |
| 34 | 34 | public function all() |
| 35 | 35 | { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $dumper = new $dumperClass; |
| 64 | 64 | $results = collect($this->results->all()); |
| 65 | 65 | |
| 66 | - return $results->map(function ($result) use ($dumper) { |
|
| 66 | + return $results->map(function($result) use ($dumper) { |
|
| 67 | 67 | return $dumper->dump($result); |
| 68 | 68 | }); |
| 69 | 69 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $this->results = cache()->remember( |
| 79 | 79 | "geocoder-{$cacheId}", |
| 80 | 80 | config('geocoder.cache-duraction', 0), |
| 81 | - function () use ($value) { |
|
| 81 | + function() use ($value) { |
|
| 82 | 82 | return parent::geocode($value); |
| 83 | 83 | } |
| 84 | 84 | ); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $this->results = cache()->remember( |
| 106 | 106 | "geocoder-{$cacheId}", |
| 107 | 107 | config('geocoder.cache-duraction', 0), |
| 108 | - function () use ($latitude, $longitude) { |
|
| 108 | + function() use ($latitude, $longitude) { |
|
| 109 | 109 | return parent::reverse($latitude, $longitude); |
| 110 | 110 | } |
| 111 | 111 | ); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * Instantiate the configured Providers, as well as the Chain Provider. |
| 62 | 62 | * |
| 63 | 63 | * @param Collection $providers |
| 64 | - * @return array |
|
| 64 | + * @return \Geocoder\Provider\Provider[] |
|
| 65 | 65 | */ |
| 66 | 66 | private function getProviders(Collection $providers) |
| 67 | 67 | { |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | /** |
| 130 | 130 | * Get the services provided by the provider. |
| 131 | 131 | * |
| 132 | - * @return array |
|
| 132 | + * @return string[] |
|
| 133 | 133 | */ |
| 134 | 134 | public function provides() |
| 135 | 135 | { |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | use Geocoder\Laravel\Facades\Geocoder; |
| 13 | 13 | use Geocoder\Laravel\ProviderAndDumperAggregator; |
| 14 | 14 | use Geocoder\Provider\Chain; |
| 15 | -use Illuminate\Foundation\AliasLoader; |
|
| 16 | 15 | use Illuminate\Support\Collection; |
| 17 | 16 | use Illuminate\Support\ServiceProvider; |
| 18 | 17 | use ReflectionClass; |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | public function boot() |
| 36 | 36 | { |
| 37 | 37 | $configPath = __DIR__ . '/../../config/geocoder.php'; |
| 38 | - $this->publishes([$configPath => config_path('geocoder.php')], 'config'); |
|
| 38 | + $this->publishes([ $configPath => config_path('geocoder.php') ], 'config'); |
|
| 39 | 39 | $this->mergeConfigFrom($configPath, 'geocoder'); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public function register() |
| 48 | 48 | { |
| 49 | 49 | $this->app->alias('Geocoder', Geocoder::class); |
| 50 | - $this->app->singleton('geocoder', function () { |
|
| 50 | + $this->app->singleton('geocoder', function() { |
|
| 51 | 51 | $geocoder = new ProviderAndDumperAggregator(); |
| 52 | 52 | $geocoder->registerProviders( |
| 53 | 53 | $this->getProviders(collect(config('geocoder.providers'))) |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | private function getProviders(Collection $providers) |
| 67 | 67 | { |
| 68 | - $providers = $providers->map(function ($arguments, $provider) { |
|
| 68 | + $providers = $providers->map(function($arguments, $provider) { |
|
| 69 | 69 | $arguments = $this->getArguments($arguments, $provider); |
| 70 | 70 | $reflection = new ReflectionClass($provider); |
| 71 | 71 | |
@@ -133,6 +133,6 @@ discard block |
||
| 133 | 133 | */ |
| 134 | 134 | public function provides() |
| 135 | 135 | { |
| 136 | - return ['geocoder']; |
|
| 136 | + return [ 'geocoder' ]; |
|
| 137 | 137 | } |
| 138 | 138 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | true, |
| 27 | 27 | env('GOOGLE_MAPS_API_KEY'), |
| 28 | 28 | ], |
| 29 | - FreeGeoIp::class => [], |
|
| 29 | + FreeGeoIp::class => [ ], |
|
| 30 | 30 | ], |
| 31 | 31 | BingMaps::class => [ |
| 32 | 32 | 'en-US', |