Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
18 | public function remove(Card $cardToRemove, MatchId $match, int $owner): void |
||
19 | { |
||
20 | $this->cards[$match->id()][$owner] = array_filter( |
||
21 | $this->cards[$match->id()][$owner], |
||
22 | function (Card $card) use ($cardToRemove): bool { |
||
23 | return !$card->is($cardToRemove); |
||
24 | } |
||
51 |