@@ -40,7 +40,9 @@ discard block |
||
40 | 40 | public function getUpdates(){ |
41 | 41 | $res = []; |
42 | 42 | foreach ($this->responses as $entity){ |
43 | - if($entity->getStatus() != HttpResponse::HttpOKStatus) continue; |
|
43 | + if($entity->getStatus() != HttpResponse::HttpOKStatus) { |
|
44 | + continue; |
|
45 | + } |
|
44 | 46 | $res[] = $entity; |
45 | 47 | } |
46 | 48 | return $res; |
@@ -52,7 +54,9 @@ discard block |
||
52 | 54 | public function getDeletes(){ |
53 | 55 | $res = []; |
54 | 56 | foreach ($this->responses as $entity){ |
55 | - if($entity->getStatus() != HttpResponse::HttpNotFoundStatus) continue; |
|
57 | + if($entity->getStatus() != HttpResponse::HttpNotFoundStatus) { |
|
58 | + continue; |
|
59 | + } |
|
56 | 60 | $res[] = $entity; |
57 | 61 | } |
58 | 62 | return $res; |
@@ -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 | } |