Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 5 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 6 | public function calculateDigit($baseNumber) |
|
36 | { |
||
37 | 6 | $calculator = new DigitCalculator($baseNumber); |
|
38 | 6 | $calculator->withMultipliersInterval(2, 9); |
|
39 | 6 | $calculator->useComplementaryInsteadOfModule(); |
|
40 | 6 | $calculator->replaceWhen('0', 10, 11); |
|
41 | 6 | $calculator->withModule(DigitCalculator::MODULE_11); |
|
47 |