| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function getIpLocationDetails() |
||
| 45 | { |
||
| 46 | if (!$this->owner->IP) { |
||
| 47 | return null; |
||
| 48 | } |
||
| 49 | if (interface_exists("\\LeKoala\\Geo\\Services\\Geolocator")) { |
||
| 50 | $geolocator = Injector::inst()->get("\\LeKoala\\Geo\\Services\\Geolocator"); |
||
| 51 | return $geolocator->geolocate($this->owner->IP); |
||
| 52 | } |
||
| 53 | return null; |
||
| 54 | } |
||
| 56 |