@@ -46,8 +46,9 @@ |
||
| 46 | 46 | $this->server_url = $server_url; |
| 47 | 47 | if(!empty($this->body)) { |
| 48 | 48 | $this->xml = simplexml_load_string($this->body, 'SimpleXMLElement', LIBXML_NOCDATA); |
| 49 | - if($this->xml === FALSE) |
|
| 50 | - throw new XMLResponseParseException(); |
|
| 49 | + if($this->xml === FALSE) { |
|
| 50 | + throw new XMLResponseParseException(); |
|
| 51 | + } |
|
| 51 | 52 | $this->content = $this->toAssocArray($this->xml); |
| 52 | 53 | $this->parse(); |
| 53 | 54 | } |