@@ -10,6 +10,6 @@ |
||
10 | 10 | * @author André de Brito <https://github.com/andredebrito> |
11 | 11 | * @package AndredeBrito\PHPViaCep\Exceptions |
12 | 12 | */ |
13 | -class InvalidEstateException extends RuntimeException{ |
|
13 | +class InvalidEstateException extends RuntimeException { |
|
14 | 14 | |
15 | 15 | } |
@@ -190,7 +190,7 @@ |
||
190 | 190 | return ($this->response && in_array("erro", json_decode($this->response)) || ($this->response == "[]") ? null : $this->response); |
191 | 191 | |
192 | 192 | case "xml": |
193 | - return (!empty(simplexml_load_string($this->response)->erro) || (isset(simplexml_load_string($this->response)->enderecos) && (string)simplexml_load_string($this->response)->enderecos == "") ? null : $this->response); |
|
193 | + return (!empty(simplexml_load_string($this->response)->erro) || (isset(simplexml_load_string($this->response)->enderecos) && (string) simplexml_load_string($this->response)->enderecos == "") ? null : $this->response); |
|
194 | 194 | |
195 | 195 | case "pided": |
196 | 196 | return ($this->response == "erro:true" ? null : $this->response); |