Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | 26 | public function calculateDigit(string $baseNumber) : string |
|
32 | { |
||
33 | 26 | $calculator = new DigitCalculator($baseNumber); |
|
34 | 26 | $calculator->withMultipliers([8, 7, 6, 5, 4, 3, 2, 1]); |
|
35 | 26 | $calculator->withModule(9); |
|
36 | |||
37 | 26 | $digit = $calculator->calculate(); |
|
38 | |||
39 | 26 | return "{$digit}"; |
|
40 | } |
||
42 |