| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 31 | 2 | public function convertJsonArray(string $content): array |
|
| 32 | { |
||
| 33 | 2 | $response = json_decode($content); |
|
| 34 | |||
| 35 | 2 | $array = []; |
|
| 36 | |||
| 37 | 2 | if (!empty($response->channels)) { |
|
| 38 | 2 | foreach ($response->channels as $channel) { |
|
| 39 | 2 | $array[] = $this->stdClassToChannel($channel); |
|
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | 2 | return $array; |
|
| 44 | } |
||
| 61 |