Conditions | 2 |
Paths | 2 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | private function prepareRaidValueObject($responseObject) |
||
36 | { |
||
37 | $raids = []; |
||
38 | |||
39 | foreach ($responseObject->progression->raids as $raid) { |
||
40 | $bosses = $this->prepareBossValueObject($raid); |
||
41 | |||
42 | $raids[] = new RaidValueObject( |
||
43 | $raid->name, |
||
44 | $raid->lfr, |
||
45 | $raid->normal, |
||
46 | $raid->heroic, |
||
47 | $raid->mythic, |
||
48 | $raid->id, |
||
49 | $bosses |
||
50 | ); |
||
51 | } |
||
52 | |||
53 | return $raids; |
||
54 | } |
||
55 | |||
81 |