Skip to content
This repository was archived by the owner on Aug 21, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion PhoneNumberUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,10 @@ private function init($filePrefix) {
foreach ($this->countryCallingCodeToRegionCodeMap as $regionCodes) {
$this->supportedRegions = array_merge($this->supportedRegions, $regionCodes);
}
unset($this->supportedRegions[array_search(self::REGION_CODE_FOR_NON_GEO_ENTITY, $this->supportedRegions)]);
$unsupportedRegionIndex = array_search(self::REGION_CODE_FOR_NON_GEO_ENTITY, $this->supportedRegions);
if ($unsupportedRegionIndex !== false) {
unset($this->supportedRegions[$unsupportedRegionIndex]);
}
$this->nanpaRegions = $this->countryCallingCodeToRegionCodeMap[self::NANPA_COUNTRY_CODE];
}

Expand Down
67 changes: 0 additions & 67 deletions data/PhoneNumberMetadataForTesting_800.php

This file was deleted.

67 changes: 0 additions & 67 deletions data/PhoneNumberMetadataForTesting_979.php

This file was deleted.

57 changes: 0 additions & 57 deletions data/PhoneNumberMetadataForTesting_AD.php

This file was deleted.

69 changes: 0 additions & 69 deletions data/PhoneNumberMetadataForTesting_AO.php

This file was deleted.

Loading