| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 14 | public function check(Result $result): bool |
||
| 15 | { |
||
| 16 | $check = false; |
||
| 17 | if ($result->getFirstTeamResult() !== $result->getSecondTeamResult() |
||
| 18 | && $result->getFirstTeamUserResult() !== $result->getSecondTeamUserResult() |
||
| 19 | ) { |
||
| 20 | $hasWinFirstTeam = $result->getFirstTeamResult() > $result->getSecondTeamResult(); |
||
| 21 | $hasUserWinFirstTeam = $result->getFirstTeamUserResult() > $result->getSecondTeamUserResult(); |
||
| 22 | $check = $hasWinFirstTeam === $hasUserWinFirstTeam; |
||
| 23 | } |
||
| 24 | return $check; |
||
| 25 | } |
||
| 32 | } |