| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 2912 | public function matchNationalNumber($number, PhoneNumberDesc $numberDesc, $allowPrefixMatch) |
|
| 27 | { |
||
| 28 | 2912 | $nationalNumberPattern = $numberDesc->getNationalNumberPattern(); |
|
| 29 | |||
| 30 | // We don't want to consider it a prefix match when matching non-empty input against an empty |
||
| 31 | // pattern |
||
| 32 | |||
| 33 | 2912 | if (\strlen($nationalNumberPattern) === 0) { |
|
| 34 | 1 | return false; |
|
| 35 | } |
||
| 36 | |||
| 37 | 2912 | return $this->match($number, $nationalNumberPattern, $allowPrefixMatch); |
|
| 38 | } |
||
| 57 |