Skip to content

Commit 0f7ba15

Browse files
committed
Fix getLocalhostDefaults() results
1 parent a68fdb8 commit 0f7ba15

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Geocoder/Provider/FreeGeoIp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function geocode($address)
3333
}
3434

3535
if (in_array($address, array('127.0.0.1', '::1'))) {
36-
return array($this->getLocalhostDefaults());
36+
return $this->returnResults([ $this->getLocalhostDefaults() ]);
3737
}
3838

3939
$query = sprintf(self::ENDPOINT_URL, $address);

src/Geocoder/Provider/GeoIP2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function geocode($address)
4343
}
4444

4545
if ('127.0.0.1' === $address) {
46-
return $this->getLocalhostDefaults();
46+
return $this->returnResults([ $this->getLocalhostDefaults() ]);
4747
}
4848

4949
$result = json_decode($this->executeQuery($address));

src/Geocoder/Provider/GeoIPs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function geocode($address)
7878
}
7979

8080
if ('127.0.0.1' === $address) {
81-
return array($this->getLocalhostDefaults());
81+
return $this->returnResults([ $this->getLocalhostDefaults() ]);
8282
}
8383

8484
$query = sprintf(self::GEOCODE_ENDPOINT_URL, $address, $this->apiKey);

src/Geocoder/Provider/HostIp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function geocode($address)
3838
}
3939

4040
if ('127.0.0.1' === $address) {
41-
return array($this->getLocalhostDefaults());
41+
return $this->returnResults([ $this->getLocalhostDefaults() ]);
4242
}
4343

4444
$query = sprintf(self::ENDPOINT_URL, $address);

src/Geocoder/Provider/IpInfoDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function geocode($address)
6060
}
6161

6262
if ('127.0.0.1' === $address) {
63-
return array($this->getLocalhostDefaults());
63+
return $this->returnResults([ $this->getLocalhostDefaults() ]);
6464
}
6565

6666
$query = sprintf(self::ENDPOINT_URL, $this->apiKey, $address);

0 commit comments

Comments
 (0)