Percentage | Lines | ||
---|---|---|---|
Modulo10Gtin |
|
100 % | 13 |
AssertionsTrait |
|
100 % | 17 |
Modulo10 |
|
100 % | 44 |
Modulo11 |
|
100 % | 78 |
Modulo97 |
|
100 % | 22 |
CRAP Score | Lines | |
---|---|---|
Modulo11::isValid() | 4 | 18 |
Modulo10::calculateSum() | 4 | 13 |
Modulo10Gtin::calculateSum() | 3 | 10 |
Modulo10::isValid() | 2 | 4 |
Modulo11::getWeight() | 2 | 10 |
Modulo11::calculateCheckDigit() | 2 | 13 |
Modulo10::calculateCheckDigit() | 2 | 14 |
AssertionsTrait::assertNumber() | 2 | 8 |
Modulo97::isValid() | 1 | 5 |
Modulo97::calculateCheckDigit() | 1 | 5 |