Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev authored and github-actions[bot] committed Feb 24, 2024
1 parent 5b87b8b commit 2d6d90d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/IPApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ public function locate($ip)
// Parse body content
$json = json_decode($data[0]);
if (! is_object($json) || ! property_exists($json, 'status')) {
throw new \RuntimeException("Unexpected ip-api.com response: $json->message");
throw new \RuntimeException("Unexpected ip-api.com response: {$json->message}");
}

// Verify response status
if ($json->status !== 'success') {
throw new \RuntimeException("Failed ip-api.com response: $json->message");
throw new \RuntimeException("Failed ip-api.com response: {$json->message}");
}

return $this->hydrate([
Expand Down

0 comments on commit 2d6d90d

Please sign in to comment.