| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 57 | public static function verify(PhoneNumber $number, $candidate, PhoneNumberUtil $util) |
|
| 24 | { |
||
| 25 | 57 | if (!$util->isValidNumber($number) |
|
| 26 | 57 | || !PhoneNumberMatcher::containsOnlyValidXChars($number, $candidate, $util)) { |
|
| 27 | 25 | return false; |
|
| 28 | } |
||
| 29 | |||
| 30 | 45 | return PhoneNumberMatcher::isNationalPrefixPresentIfRequired($number, $util); |
|
| 31 | } |
||
| 33 |