Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
62 | 5 | protected static function processObject(object $object) : object { |
|
63 | /** @var Team $team */ |
||
64 | 5 | $team = $object->object; |
|
65 | 5 | $object->scores = array_map(static function(array $group) { |
|
66 | 4 | unset($group['group']); // Get rid of the Group object reference |
|
67 | 4 | return $group; |
|
68 | 5 | }, $team->getGroupResults()); |
|
69 | 5 | return $object; |
|
70 | } |
||
71 | } |