| Percentage | Lines | ||
|---|---|---|---|
| Helpers |
|
70 % | 50 |
| Macros |
|
83 % | 83 |
| PhoneUIExtension |
|
100 % | 53 |
| IException |
|
100 % | 3 |
| InvalidArgumentException |
|
100 % | 3 |
| InvalidParameterException |
|
100 % | 3 |
| NoValidCountryException |
|
100 % | 3 |
| PhoneValidator |
|
100 % | 210 |
| PhoneUI |
|
100 % | 28 |
| CRAP Score | Lines | ||
|---|---|---|---|
| PhoneValidator::validatePhone() | 12 | 74 | |
| Macros::prepareMacroArguments() | 7 | 25 | |
| Helpers::phone() | 7 | 14 | |
| PhoneValidator::isPhoneCountry() | 4 | 4 | |
| PhoneValidator::determineCountries() | 3 | 19 | |
| Macros::isPhoneCountry() | 3 | 4 | |
| Macros::macroPhone() | 2 | 10 | |
| PhoneUIExtension::beforeCompile() | 2 | 15 | |
| PhoneValidator::isPhoneType() | 2 | 7 | |
| PhoneValidator::determineTypes() | 2 | 21 | |