| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 22 | public function played(int $offset, MatchId $match, int $player): void |
||
| 23 | { |
||
| 24 | foreach ($this->cards[$match->id()][$player] as $cardNumber => $cardInHand) { |
||
| 25 | if ($cardInHand->offset() === $offset) { |
||
| 26 | unset($this->cards[$match->id()][$player][$cardNumber]); |
||
| 27 | } |
||
| 28 | } |
||
| 29 | $this->cards[$match->id()][$player] = array_values( |
||
| 30 | $this->cards[$match->id()][$player] |
||
| 31 | ); |
||
| 40 |