| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function get($response) |
||
| 25 | { |
||
| 26 | $json = $this->decode($response); |
||
| 27 | $header = array_shift($json); |
||
| 28 | $result = array(); |
||
| 29 | foreach ($json as $row) { |
||
| 30 | $work = array(); |
||
| 31 | foreach ($row as $key => $value) { |
||
| 32 | $work[$header[$key]] = $value; |
||
| 33 | } |
||
| 34 | $result[] = $work; |
||
| 35 | } |
||
| 36 | |||
| 37 | return $result; |
||
| 38 | } |
||
| 39 | |||
| 41 |