@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Geocoder package. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Geocoder package. |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Geocoder package. |
@@ -42,12 +42,12 @@ discard block |
||
42 | 42 | $startTime = microtime(true); |
43 | 43 | $logger = $this->logger; |
44 | 44 | |
45 | - return $next($query)->then(function (Collection $result) use ($logger, $query, $startTime) { |
|
45 | + return $next($query)->then(function(Collection $result) use ($logger, $query, $startTime) { |
|
46 | 46 | $duration = (microtime(true) - $startTime) * 1000; |
47 | 47 | $this->logger->info(sprintf('[Geocoder] Got %d results in %0.2f ms for query %s', count($result), $duration, $query->__toString())); |
48 | 48 | |
49 | 49 | return $result; |
50 | - }, function (Exception $exception) use ($logger, $query, $startTime) { |
|
50 | + }, function(Exception $exception) use ($logger, $query, $startTime) { |
|
51 | 51 | $duration = (microtime(true) - $startTime) * 1000; |
52 | 52 | $this->logger->error(sprintf('[Geocoder] Failed with %s after %0.2f ms for query %s', get_class($exception), $duration, $query->__toString())); |
53 | 53 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Geocoder package. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Geocoder package. |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Geocoder package. |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function geocodeQuery(GeocodeQuery $query): Collection |
68 | 68 | { |
69 | - $pluginChain = $this->createPluginChain($this->plugins, function (GeocodeQuery $query) { |
|
69 | + $pluginChain = $this->createPluginChain($this->plugins, function(GeocodeQuery $query) { |
|
70 | 70 | try { |
71 | 71 | return new GeocoderFulfilledPromise($this->provider->geocodeQuery($query)); |
72 | 72 | } catch (Exception $exception) { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | */ |
83 | 83 | public function reverseQuery(ReverseQuery $query): Collection |
84 | 84 | { |
85 | - $pluginChain = $this->createPluginChain($this->plugins, function (ReverseQuery $query) { |
|
85 | + $pluginChain = $this->createPluginChain($this->plugins, function(ReverseQuery $query) { |
|
86 | 86 | try { |
87 | 87 | return new GeocoderFulfilledPromise($this->provider->reverseQuery($query)); |
88 | 88 | } catch (Exception $exception) { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $firstCallable = $lastCallable = $clientCallable; |
138 | 138 | |
139 | 139 | while ($plugin = array_pop($pluginList)) { |
140 | - $lastCallable = function (Query $query) use ($plugin, $lastCallable, &$firstCallable) { |
|
140 | + $lastCallable = function(Query $query) use ($plugin, $lastCallable, &$firstCallable) { |
|
141 | 141 | return $plugin->handleQuery($query, $lastCallable, $firstCallable); |
142 | 142 | }; |
143 | 143 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | } |
146 | 146 | |
147 | 147 | $firstCalls = 0; |
148 | - $firstCallable = function (Query $query) use ($lastCallable, &$firstCalls) { |
|
148 | + $firstCallable = function(Query $query) use ($lastCallable, &$firstCalls) { |
|
149 | 149 | if ($firstCalls > $this->options['max_restarts']) { |
150 | 150 | throw LoopException::create('Too many restarts in plugin provider', $query); |
151 | 151 | } |