Skip to content

Commit 2d6d90d

Browse files
alies-devgithub-actions[bot]
authored andcommitted
Fix coding style
1 parent 5b87b8b commit 2d6d90d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Services/IPApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ public function locate($ip)
7373
// Parse body content
7474
$json = json_decode($data[0]);
7575
if (! is_object($json) || ! property_exists($json, 'status')) {
76-
throw new \RuntimeException("Unexpected ip-api.com response: $json->message");
76+
throw new \RuntimeException("Unexpected ip-api.com response: {$json->message}");
7777
}
7878

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

8484
return $this->hydrate([

0 commit comments

Comments
 (0)