Percentage | Lines | ||
---|---|---|---|
PhoneServiceProvider |
|
90 % | 62 |
ParsesTypes |
|
95 % | 73 |
CountryCodeException |
|
100 % | 13 |
NumberFormatException |
|
100 % | 13 |
ParsesFormats |
|
100 % | 49 |
InvalidParameterException |
|
100 % | 13 |
NumberParseException |
|
100 % | 68 |
Phone |
|
100 % | 121 |
Phone |
|
100 % | 148 |
PhoneNumber |
|
100 % | 386 |
CRAP Score | Lines | ||
---|---|---|---|
Phone::validate() | 13 | 53 | |
PhoneNumber::filterValidCountry() | 8 | 39 | |
Phone::__toString() | 5 | 12 | |
Phone::extractParameters() | 5 | 30 | |
ParsesTypes::parseTypes() | 5 | 18 | |
PhoneServiceProvider::registerRule() | 3 | 8 | |
PhoneNumber::getType() | 3 | 12 | |
helpers.php ➔ phone() | 2 | 10 | |
PhoneNumber::ofCountry() | 2 | 11 | |
PhoneNumber::getCountry() | 2 | 8 | |