| Conditions | 2 |
| Paths | 2 |
| Total Lines | 5 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 1 | protected function schulzeVariant (int &$i, int &$j) : float { |
|
| 21 | 1 | return (float) ($this->_selfElection->getPairwise(false)[$j]['win'][$i] !== 0) ? |
|
| 22 | 1 | ($this->_selfElection->getPairwise(false)[$i]['win'][$j] / $this->_selfElection->getPairwise(false)[$j]['win'][$i]) : |
|
| 23 | 1 | 0; |
|
| 24 | } |
||
| 25 | } |
||
| 26 |