Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function getResponseData($key = null) |
||
12 | { |
||
13 | // First response is special and returns data in 'resource_response.data.results` array |
||
14 | $data = $this->getData('resource_response.data.results', []); |
||
15 | |||
16 | // All the next responses look as expected |
||
17 | return empty($data) ? |
||
18 | parent::getResponseData() : |
||
19 | $data; |
||
20 | } |
||
22 |