| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 59 | private function handleResponse() |
||
| 60 | { |
||
| 61 | if ($this->getBody()->getSize() > 0) { |
||
| 62 | $body = (string)$this->getBody(); |
||
| 63 | $data = $this->jsonDecoder->decode($body); |
||
| 64 | |||
| 65 | if (isset($data->results, $data->totalCount)) { |
||
| 66 | $this->total = $data->totalCount; |
||
| 67 | $this->data = $data->results; |
||
| 68 | |||
| 69 | return; |
||
| 70 | } |
||
| 71 | } |
||
| 72 | |||
| 73 | $this->data = null; |
||
| 74 | $this->total = 0; |
||
| 75 | } |
||
| 76 | } |
||
| 77 |