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