Skip to content
Merged
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
2 changes: 1 addition & 1 deletion METADATA-VERSION.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
* For more information, look at the phing tasks in build.xml
* @internal
*/
return 'v9.0.34';
return 'v9.0.35';
11 changes: 4 additions & 7 deletions src/carrier/data/en/En_247.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@
class En_247
{
public const DATA = [
24741 => 'Sure South Atlantic',
24742 => 'Sure South Atlantic',
24743 => 'Sure South Atlantic',
24745 => 'Sure South Atlantic',
24746 => 'Sure South Atlantic',
24747 => 'Sure South Atlantic',
24748 => 'Sure South Atlantic',
2472 => 'Sure South Atlantic',
2473 => 'Sure South Atlantic',
2474 => 'Sure South Atlantic',
2477 => 'Sure South Atlantic',
];
}
2 changes: 1 addition & 1 deletion src/carrier/data/en/En_250.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
*/
class En_250
{
public const DATA = [2507 => 'KtRN'];
public const DATA = [25072 => 'Airtel', 25073 => 'Airtel', 25077 => 'KtRN', 25078 => 'MTN', 25079 => 'MTN'];
}
1 change: 1 addition & 0 deletions src/carrier/data/en/En_254.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class En_254
25411 => 'Safaricom',
25413 => 'NRG Media Limited',
25414 => 'Safaricom',
25418 => 'Safaricom',
25470 => 'Safaricom',
25471 => 'Safaricom',
25472 => 'Safaricom',
Expand Down
2 changes: 2 additions & 0 deletions src/carrier/data/en/En_256.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class En_256
256730 => 'Airtel',
256731 => 'Airtel',
256736 => 'Hamilton Telecom',
256737 => 'MTN',
256790 => 'MTN',
256791 => 'MTN',
256792 => 'MTN',
Expand All @@ -41,6 +42,7 @@ class En_256
256795 => 'Airtel',
256798 => 'Africell',
256799 => 'Africell',
2567210 => 'Savanna',
2567240 => 'Hamilton Telecom',
];
}
9 changes: 8 additions & 1 deletion src/carrier/data/en/En_263.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,12 @@
*/
class En_263
{
public const DATA = [26371 => 'Net*One', 26372 => 'Net*One', 26373 => 'Telecel', 26377 => 'Econet', 26378 => 'Econet'];
public const DATA = [
26371 => 'Net*One',
26372 => 'Net*One',
26373 => 'Telecel',
26377 => 'Econet',
26378 => 'Econet',
26379 => 'Econet',
];
}
1 change: 1 addition & 0 deletions src/carrier/data/en/En_298.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class En_298
29878 => 'Faroese Telecom',
29879 => 'Faroese Telecom',
29891 => 'Faroese Telecom',
29893 => 'Faroese Telecom',
29896 => 'Faroese Telecom',
];
}
1 change: 1 addition & 0 deletions src/carrier/data/en/En_420.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class En_420
420776 => 'Vodafone',
420777 => 'Vodafone',
420792 => 'O2',
420798 => 'T-Mobile',
4207030 => 'T-Mobile',
4207031 => 'T-Mobile',
4207032 => 'T-Mobile',
Expand Down
10 changes: 4 additions & 6 deletions src/carrier/data/en/En_61.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ class En_61
61487 => 'Telstra',
61488 => 'Telstra',
61495 => 'Optus',
614400 => 'Aazad distribution discretionary trust',
614201 => 'Pivotel Satellite',
614400 => 'the trustee for aazad distribution discretionary trust',
614444 => 'Telstra',
614445 => 'Telstra',
614493 => 'Soul Pattinson',
614493 => 'soul pattinson',
614700 => 'Lycamobile',
614701 => 'Lycamobile',
614702 => 'Lycamobile',
Expand Down Expand Up @@ -121,10 +122,7 @@ class En_61
6142001 => 'Rail Corporation NSW',
6142002 => 'Dialogue Communications',
6142003 => 'MessageBird',
6142004 => 'Symbio Networks',
6142010 => 'Pivotel Satellite',
6142011 => 'Compatel Limited',
6142012 => 'Soul Pattinson',
6142004 => 'symbio networks',
6148984 => 'Victorian Rail Track',
6148985 => 'MessageBird',
];
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/En_86.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class En_86
86153 => 'China Telecom',
86155 => 'China Unicom',
86156 => 'China Unicom',
86161 => 'China Broadnet',
86166 => 'China Unicom',
86167 => 'China Unicom',
86171 => 'China Unicom',
Expand Down
4 changes: 2 additions & 2 deletions src/carrier/data/en/En_93.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class En_93
9372 => 'Roshan',
9373 => 'Etisalat',
9375 => 'Afghan Telecom',
9376 => 'MTN',
9377 => 'MTN',
9376 => 'ATOMA',
9377 => 'ATOMA',
9378 => 'Etisalat',
9379 => 'Roshan',
93744 => 'Afghan Telecom',
Expand Down
5 changes: 4 additions & 1 deletion src/carrier/data/en/En_976.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class En_976
97689 => 'Unitel',
97690 => 'Skytel',
97691 => 'Skytel',
97692 => 'Skytel',
97693 => 'G-Mobile',
97694 => 'Mobicom',
97695 => 'Mobicom',
Expand Down Expand Up @@ -60,5 +59,9 @@ class En_976
976557 => 'Mobicom',
976558 => 'Mobicom',
976559 => 'Mobicom',
976920 => 'Skytel',
976921 => 'G-Mobile',
976923 => 'Skytel',
976929 => 'Skytel',
];
}
6 changes: 5 additions & 1 deletion src/carrier/data/en/En_995.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ class En_995
9955441 => 'Cellfie',
9955442 => 'Cellfie',
9955443 => 'Cellfie',
9955445 => 'Silknet',
9955447 => 'Cellfie',
9955449 => 'Cellfie',
9955520 => 'Premium Net International SRL',
Expand All @@ -87,6 +86,8 @@ class En_995
9955858 => 'MagtiCom',
99550001 => 'Cellfie',
99550002 => 'Icell Telecom',
99550008 => 'Cellfie',
99550009 => 'Cellfie',
99550010 => 'Cellfie',
99550011 => 'Silknet',
99550012 => 'Silknet',
Expand All @@ -109,7 +110,10 @@ class En_995
99551156 => 'MagtiCom',
99552222 => 'MagtiCom',
99552225 => 'Silknet',
99552228 => 'Cellfie',
99554444 => 'MagtiCom',
99554454 => 'Silknet',
99554455 => 'Cellfie',
99555000 => 'Silknet',
99555005 => 'Silknet',
99555050 => 'Silknet',
Expand Down
4 changes: 2 additions & 2 deletions src/carrier/data/fa/Fa_93.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class Fa_93
9372 => 'روشن',
9373 => 'اتصالات',
9375 => 'افغان تلکام',
9376 => 'ام تی ان',
9377 => 'ام تی ان',
9376 => 'أتومـا',
9377 => 'أتومـا',
9378 => 'اتصالات',
9379 => 'روشن',
93744 => 'افغان تلکام',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/zh/Zh_86.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Zh_86
86153 => '中国电信',
86155 => '中国联通',
86156 => '中国联通',
86161 => '中国广电',
86166 => '中国联通',
86167 => '中国联通',
86171 => '中国联通',
Expand Down
4 changes: 2 additions & 2 deletions src/data/PhoneNumberAlternateFormats_995.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ public function __construct()
(new NumberFormat())
->setPattern('(\d{3})(\d{6})')
->setFormat('$1 $2')
->setLeadingDigitsPattern(['[348]'])
->setLeadingDigitsPattern(['[348]|5545'])
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
->setPattern('(\d{3})(\d{3})(\d{3})')
->setFormat('$1 $2 $3')
->setLeadingDigitsPattern(['[348]'])
->setLeadingDigitsPattern(['[348]|5545'])
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
->setPattern('(\d{2})(\d{2})(\d{3})(\d{2})')
Expand Down
6 changes: 3 additions & 3 deletions src/data/PhoneNumberMetadata_AC.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ class PhoneNumberMetadata_AC extends PhoneMetadata
public function __construct()
{
$this->generalDesc = (new PhoneNumberDesc())
->setNationalNumberPattern('(?:[01589]\d|[46])\d{4}')
->setNationalNumberPattern('(?:[01589]\d|[2-467])\d{4}')
->setPossibleLength([5, 6]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('4\d{4}')
->setNationalNumberPattern('[2-47]\d{4}')
->setExampleNumber('40123')
->setPossibleLength([5]);
$this->premiumRate = PhoneNumberDesc::empty();
$this->fixedLine = (new PhoneNumberDesc())
->setNationalNumberPattern('6[2-467]\d{3}')
->setNationalNumberPattern('6\d{4}')
->setExampleNumber('62889')
->setPossibleLength([5]);
$this->tollFree = PhoneNumberDesc::empty();
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_CN.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct()
->setPossibleLengthLocalOnly([5, 6])
->setPossibleLength([7, 8, 9, 10, 11, 12]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('1740[0-5]\d{6}|1(?:[38]\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\d{8}')
->setNationalNumberPattern('1(?:610\d|740[0-5])\d{6}|1(?:[38]\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\d{8}')
->setExampleNumber('13123456789')
->setPossibleLength([11]);
$this->premiumRate = (new PhoneNumberDesc())
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_FO.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct()
->setNationalNumberPattern('[2-9]\d{5}')
->setPossibleLength([6]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('(?:[27][1-9]|5\d|9[16])\d{4}')
->setNationalNumberPattern('(?:[27][1-9]|5\d|9[136])\d{4}')
->setExampleNumber('211234');
$this->premiumRate = (new PhoneNumberDesc())
->setNationalNumberPattern('90(?:[13-5][15-7]|2[125-7]|9\d)\d\d')
Expand Down
6 changes: 3 additions & 3 deletions src/data/PhoneNumberMetadata_GE.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct()
->setPossibleLengthLocalOnly([6, 7])
->setPossibleLength([9]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\d|22252[0-4])\d\d|5(?:0(?:0(?:1[09]|70)|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\d{3}|(?:5(?:0(?:0(?:0\d|1[12]|22|3[0-6]|44|5[05]|77|88|9[09])|(?:[14]\d|77)\d|22[02])|1(?:1(?:[03][01]|[124]\d|5[2-6]|7[0-6])|4\d\d)|[23]555|4(?:4\d\d|555)|5(?:[0157-9]\d\d|200|333|4(?:44|55))|6[89]\d\d|7(?:(?:[0147-9]\d|22)\d|5(?:00|[57]5))|8(?:0(?:[018]\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\d\d))|790\d\d)\d{4}')
->setNationalNumberPattern('5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\d|22252[0-4])\d\d|5(?:0(?:0(?:1[09]|70)|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\d{3}|(?:5(?:0(?:0(?:0\d|1[12]|22|3[0-6]|44|5[05]|77|88|9[09])|(?:[14]\d|77)\d|22[02])|1(?:1(?:[03][01]|[124]\d|5[2-6]|7[0-6])|4\d\d)|2(?:228|555)|3555|4(?:4\d\d|555)|5(?:[0157-9]\d\d|200|333|4(?:44|55))|6[89]\d\d|7(?:(?:[0147-9]\d|22)\d|5(?:00|[57]5))|8(?:0(?:[018]\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\d\d))|790\d\d)\d{4}')
->setExampleNumber('555123456');
$this->premiumRate = PhoneNumberDesc::empty();
$this->fixedLine = (new PhoneNumberDesc())
Expand All @@ -58,12 +58,12 @@ public function __construct()
(new NumberFormat())
->setPattern('(\d{3})(\d{2})(\d{2})(\d{2})')
->setFormat('$1 $2 $3 $4')
->setLeadingDigitsPattern(['[57]'])
->setLeadingDigitsPattern(['5(?:[0-46-9]|5[0-57-9])|7', '5(?:[0-46-9]|5(?:[0-357-9]|44))|7'])
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
->setPattern('(\d{3})(\d{2})(\d{2})(\d{2})')
->setFormat('$1 $2 $3 $4')
->setLeadingDigitsPattern(['[348]'])
->setLeadingDigitsPattern(['[3-58]'])
->setNationalPrefixFormattingRule('0$1')
->setNationalPrefixOptionalWhenFormatting(false),
];
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_IR.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct()
->setPossibleLengthLocalOnly([8])
->setPossibleLength([4, 5, 6, 7, 10]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('9(?:(?:0[0-5]|[13]\d|2[0-3])\d\d|9(?:[0-46]\d\d|5(?:10|5\d)|8(?:[12]\d|88)|9(?:[01359]\d|21|69|77|8[7-9])))\d{5}')
->setNationalNumberPattern('9(?:(?:0[0-5]|[13]\d|2[0-3])\d\d|9(?:[0-46]\d\d|5(?:10|5\d)|8(?:[12]\d|3[0-2]|88)|9(?:[01359]\d|21|69|77|8[7-9])))\d{5}')
->setExampleNumber('9123456789')
->setPossibleLength([10]);
$this->premiumRate = PhoneNumberDesc::empty();
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_KE.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct()
->setNationalNumberPattern('(?:[17]\d\d|900)\d{6}|(?:2|80)0\d{6,7}|[4-6]\d{6,8}')
->setPossibleLength([7, 8, 9, 10]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('(?:1(?:0[0-8]|1\d|2[014]|30|4[0-5])|7\d\d)\d{6}')
->setNationalNumberPattern('(?:1(?:0[0-8]|[18]\d|2[014]|30|4[0-5])|7\d\d)\d{6}')
->setExampleNumber('712123456')
->setPossibleLength([9]);
$this->premiumRate = (new PhoneNumberDesc())
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_SE.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct()
->setNationalNumberPattern('(?:[26]\d\d|9)\d{9}|[1-9]\d{8}|[1-689]\d{7}|[1-4689]\d{6}|2\d{5}')
->setPossibleLength([6, 7, 8, 9, 10, 12]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('7[02369]\d{7}')
->setNationalNumberPattern('7[023689]\d{7}')
->setExampleNumber('701234567')
->setPossibleLength([9]);
$this->premiumRate = (new PhoneNumberDesc())
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_UG.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct()
->setPossibleLengthLocalOnly([5, 6, 7])
->setPossibleLength([9]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('7280\d{5}|7(?:[014-8]\d|2[01467]|3[016]|9[0-589])\d{6}')
->setNationalNumberPattern('7280\d{5}|7(?:[014-8]\d|2[01467]|3[0167]|9[0-589])\d{6}')
->setExampleNumber('712345678');
$this->premiumRate = (new PhoneNumberDesc())
->setNationalNumberPattern('90[1-3]\d{6}')
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_ZW.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct()
->setPossibleLengthLocalOnly([3, 4])
->setPossibleLength([5, 6, 7, 8, 9, 10]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('7(?:[1278]\d|3[1-9])\d{6}')
->setNationalNumberPattern('7(?:[1278]\d|3[1-9]|9[01])\d{6}')
->setExampleNumber('712345678')
->setPossibleLength([9]);
$this->premiumRate = PhoneNumberDesc::empty();
Expand Down
2 changes: 1 addition & 1 deletion src/data/ShortNumberMetadata_FR.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct()
->setExampleNumber('15')
->setPossibleLength([2, 3]);
$this->short_code = (new PhoneNumberDesc())
->setNationalNumberPattern('1(?:0\d\d|1(?:[02459]|6(?:000|111)|8\d{3})|[578]|9[167])|2(?:0(?:00|2)0|24)|[3-8]\d{4}|3\d{3}|6(?:1[14]|34)|7(?:0[06]|22|40)')
->setNationalNumberPattern('1(?:0\d\d|1(?:[02459]|6(?:00[06]|11[17])|8\d{3})|[578]|9[167])|2(?:0(?:00|2)0|24)|[3-8]\d{4}|3\d{3}|6(?:1[14]|34)|7(?:0[06]|22|40)')
->setExampleNumber('15');
$this->standard_rate = (new PhoneNumberDesc())
->setNationalNumberPattern('202\d|6(?:1[14]|34)|70[06]')
Expand Down
2 changes: 2 additions & 0 deletions src/geocoding/data/Map.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ class Map
86158,
86159,
86170,
86173,
86176,
86177,
86178,
Expand Down Expand Up @@ -268,6 +269,7 @@ class Map
86158,
86159,
86170,
86173,
86176,
86177,
86178,
Expand Down
20 changes: 20 additions & 0 deletions src/geocoding/data/en/En_86173.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/**
* libphonenumber-for-php data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/

declare(strict_types=1);

namespace libphonenumber\geocoding\data\en;

/**
* @internal
*/
class En_86173
{
public const DATA = [86173 => 'Beijing'];
}
20 changes: 20 additions & 0 deletions src/geocoding/data/zh/Zh_86173.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/**
* libphonenumber-for-php data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/

declare(strict_types=1);

namespace libphonenumber\geocoding\data\zh;

/**
* @internal
*/
class Zh_86173
{
public const DATA = [86173 => '北京市'];
}
Loading