@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | $dumper = new $dumperClass; |
| 71 | 71 | $results = collect($this->results->all()); |
| 72 | 72 | |
| 73 | - return $results->map(function ($result) use ($dumper) { |
|
| 73 | + return $results->map(function($result) use ($dumper) { |
|
| 74 | 74 | return $dumper->dump($result); |
| 75 | 75 | }); |
| 76 | 76 | } |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $this->results = cache()->remember( |
| 82 | 82 | "geocoder-{$cacheKey}", |
| 83 | 83 | config('geocoder.cache-duraction', 0), |
| 84 | - function () use ($query) { |
|
| 84 | + function() use ($query) { |
|
| 85 | 85 | return collect($this->aggregator->geocodeQuery($query)); |
| 86 | 86 | } |
| 87 | 87 | ); |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | $this->results = cache()->remember( |
| 96 | 96 | "geocoder-{$cacheKey}", |
| 97 | 97 | config('geocoder.cache-duraction', 0), |
| 98 | - function () use ($query) { |
|
| 98 | + function() use ($query) { |
|
| 99 | 99 | return collect($this->aggregator->reverseQuery($query)); |
| 100 | 100 | } |
| 101 | 101 | ); |
@@ -111,11 +111,11 @@ discard block |
||
| 111 | 111 | public function geocode(string $value) : self |
| 112 | 112 | { |
| 113 | 113 | #https://stackoverflow.com/questions/22112029/strslug-alternative-for-hindi-and-arabic-strings?noredirect=1&lq=1 |
| 114 | - $cacheKey = (empty(str_slug($value)))?urlencode($value):str_slug($value); |
|
| 114 | + $cacheKey = (empty(str_slug($value))) ? urlencode($value) : str_slug($value); |
|
| 115 | 115 | $this->results = cache()->remember( |
| 116 | 116 | "geocoder-{$cacheKey}", |
| 117 | 117 | config('geocoder.cache-duraction', 0), |
| 118 | - function () use ($value) { |
|
| 118 | + function() use ($value) { |
|
| 119 | 119 | return collect($this->aggregator->geocode($value)); |
| 120 | 120 | } |
| 121 | 121 | ); |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | $this->results = cache()->remember( |
| 130 | 130 | "geocoder-{$cacheId}", |
| 131 | 131 | config('geocoder.cache-duraction', 0), |
| 132 | - function () use ($latitude, $longitude) { |
|
| 132 | + function() use ($latitude, $longitude) { |
|
| 133 | 133 | return collect($this->aggregator->reverse($latitude, $longitude)); |
| 134 | 134 | } |
| 135 | 135 | ); |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | return $this; |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | - public function registerProviders(array $providers = []) : self |
|
| 159 | + public function registerProviders(array $providers = [ ]) : self |
|
| 160 | 160 | { |
| 161 | 161 | $this->aggregator->registerProviders($providers); |
| 162 | 162 | |