@@ -49,8 +49,9 @@ |
||
49 | 49 | if(!empty($this->body)) { |
50 | 50 | $this->stripped = $this->stripNamespacesFromTags($this->body); |
51 | 51 | $this->xml = simplexml_load_string($this->stripped); |
52 | - if($this->xml === FALSE) |
|
53 | - throw new XMLResponseParseException(); |
|
52 | + if($this->xml === FALSE) { |
|
53 | + throw new XMLResponseParseException(); |
|
54 | + } |
|
54 | 55 | $this->content = $this->toAssocArray($this->xml); |
55 | 56 | |
56 | 57 | $this->parse(); |
@@ -34,9 +34,13 @@ |
||
34 | 34 | $responses = []; |
35 | 35 | |
36 | 36 | foreach ($this->getResponses() as $response){ |
37 | - if(!$response instanceof GetCalendarResponse) continue; |
|
37 | + if(!$response instanceof GetCalendarResponse) { |
|
38 | + continue; |
|
39 | + } |
|
38 | 40 | $resource_types = $response->getResourceType(); |
39 | - if(in_array($type, array_keys($resource_types))) $responses[] = $response; |
|
41 | + if(in_array($type, array_keys($resource_types))) { |
|
42 | + $responses[] = $response; |
|
43 | + } |
|
40 | 44 | } |
41 | 45 | |
42 | 46 | return $responses; |