@@ -124,12 +124,12 @@ |
||
124 | 124 | * @return \AndreDeBrito\PHPViaCep\ViaCepApi|null |
125 | 125 | */ |
126 | 126 | public function jsonToObject(): ?ViaCepApi { |
127 | - if($this->responseType == "json"){ |
|
128 | - $this->responseType = "object"; |
|
129 | - $this->response = (object) json_decode($this->response); |
|
130 | - } |
|
127 | + if($this->responseType == "json"){ |
|
128 | + $this->responseType = "object"; |
|
129 | + $this->response = (object) json_decode($this->response); |
|
130 | + } |
|
131 | 131 | |
132 | - return $this; |
|
132 | + return $this; |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
@@ -124,7 +124,7 @@ |
||
124 | 124 | * @return \AndreDeBrito\PHPViaCep\ViaCepApi|null |
125 | 125 | */ |
126 | 126 | public function jsonToObject(): ?ViaCepApi { |
127 | - if($this->responseType == "json"){ |
|
127 | + if ($this->responseType == "json") { |
|
128 | 128 | $this->responseType = "object"; |
129 | 129 | $this->response = (object) json_decode($this->response); |
130 | 130 | } |