@@ -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 |