Add check to make test pass
This commit is contained in:
1 parent
7e0c231d88
commit
af13393765
1 file changed
+4
@@ -30,6 +30,10 @@ class Geocoder
|
||||
return null;
|
||||
}
|
||||
|
||||
if (array_key_exists('error', $data)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->createLatLongModel($data);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user