Skip to content

Commit eb12ef5

Browse files
System AdministratorSystem Administrator
System Administrator
authored and
System Administrator
committed
Readability change
1 parent 33b2346 commit eb12ef5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Geolocation.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ protected function doCall($parameters = array())
8080
$response = json_decode($response);
8181

8282
// API returns with an error
83-
if (isset($response->error_message)) throw new GeolocationException($response->error_message);
83+
if (isset($response->error_message)) {
84+
throw new GeolocationException($response->error_message);
85+
}
8486

8587
// return the content
8688
return $response->results;

0 commit comments

Comments
 (0)