Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | 1 | public function getPrestigeOfBattleParty(BattlePartyInterface $battleParty): int |
|
43 | { |
||
44 | 1 | return $battleParty->getActiveMembers() |
|
45 | 1 | ->map(fn(ShipWrapperInterface $wrapper) => $wrapper->get()->getRump()->getPrestige()) |
|
46 | 1 | ->reduce( |
|
47 | 1 | fn(int $sum, int $prestige) => $sum + $prestige, |
|
48 | 1 | 0 |
|
49 | 1 | ); |
|
52 |