Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.0625 |
Changes | 0 |
1 | <?php |
||
21 | 2 | protected function schulzeVariant (int &$i, int &$j) : float |
|
22 | { |
||
23 | 2 | if ($this->_selfElection->getPairwise()[$j]['win'][$i] !== 0) : |
|
24 | 2 | return (float) $this->_selfElection->getPairwise()[$i]['win'][$j] / $this->_selfElection->getPairwise()[$j]['win'][$i]; |
|
25 | else : |
||
26 | return (float) 0; |
||
27 | endif; |
||
28 | } |
||
29 | } |
||
30 |