File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -80,14 +80,16 @@ public function geocode($address)
80
80
throw new NoResult (sprintf ('No results found for IP address %s ' , $ address ));
81
81
}
82
82
83
- return [ array_merge ($ this ->getDefaults (), [
84
- 'countryCode ' => $ geoIpRecord ->country_code ,
85
- 'country ' => $ geoIpRecord ->country_name ,
86
- 'region ' => $ geoIpRecord ->region ,
87
- 'locality ' => $ geoIpRecord ->city ,
88
- 'latitude ' => $ geoIpRecord ->latitude ,
89
- 'longitude ' => $ geoIpRecord ->longitude ,
90
- ])];
83
+ return $ this ->returnResults ([
84
+ array_merge ($ this ->getDefaults (), [
85
+ 'countryCode ' => $ geoIpRecord ->country_code ,
86
+ 'country ' => $ geoIpRecord ->country_name ,
87
+ 'region ' => $ geoIpRecord ->region ,
88
+ 'locality ' => $ geoIpRecord ->city ,
89
+ 'latitude ' => $ geoIpRecord ->latitude ,
90
+ 'longitude ' => $ geoIpRecord ->longitude ,
91
+ ])
92
+ ]);
91
93
}
92
94
93
95
/**
You can’t perform that action at this time.
0 commit comments