Rating | Name | Duplication | Size | Complexity | CRAP | Changes | Bugs | Features |
---|---|---|---|---|---|---|---|---|
C | LaravelPhone\Validation\Phone::validate() | 0 | 53 | 13 | 13 | 0 | 0 | 0 |
B | PhoneNumber::filterValidCountry() | 0 | 39 | 8 | 8 | 0 | 0 | 0 |
A | Validation\Phone::extractParameters() | 0 | 30 | 5 | 5 | 0 | 0 | 0 |
A | Traits\ParsesTypes::parseTypes() | 0 | 18 | 5 | 5 | 0 | 0 | 0 |
A | LaravelPhone\Rules\Phone::__toString() | 0 | 12 | 5 | 5 | 0 | 0 | 0 |
A | NumberParseException::countryMismatch() | 0 | 14 | 2 | 2 | 0 | 0 | 0 |
A | LaravelPhone\PhoneNumber::format() | 0 | 13 | 2 | 2 | 0 | 0 | 0 |
A | LaravelPhone\PhoneNumber::getType() | 0 | 12 | 3 | 3 | 0 | 0 | 0 |
A | ParsesCountries::isValidCountryCode() | 0 | 12 | 2 | 2 | 0 | 0 | 0 |
A | PhoneNumber::formatForMobileDialingInCountry() | 12 | 12 | 2 | 2 | 0 | 0 | 0 |
A | Traits\ParsesFormats::parseFormat() | 0 | 12 | 2 | 2 | 0 | 0 | 0 |
A | LaravelPhone\PhoneNumber::ofCountry() | 0 | 11 | 2 | 2 | 0 | 0 | 0 |
A | LaravelPhone\PhoneNumber::formatForCountry() | 11 | 11 | 2 | 2 | 0 | 0 | 0 |
A | ParsesTypes::parseTypesAsStrings() | 0 | 11 | 1 | 1 | 0 | 0 | 0 |
A | LaravelPhone\PhoneNumber::isOfType() | 0 | 11 | 2 | 2 | 0 | 0 | 0 |