Passed
Branch master (a9d166)
by Tobias
04:58
created
Category
Plugin/CachePlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
Plugin/BoundsPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
Plugin/LoggerPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Plugin/LimitPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
Plugin/LocalePlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
PluginProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.