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