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