Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Update french phone numbers #167

Merged
merged 1 commit into from
Aug 29, 2013
Merged
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
10 changes: 9 additions & 1 deletion src/Faker/Provider/fr_FR/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class PhoneNumber extends \Faker\Provider\PhoneNumber
{
// Phone numbers can't start by 00, 07, or 09 in France
// Phone numbers can't start by 00 in France
// 01 is the most common prefix
protected static $formats = array(
'+33 (0)1 ## ## ## ##',
Expand All @@ -14,30 +14,38 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
'+33 (0)4 ## ## ## ##',
'+33 (0)5 ## ## ## ##',
'+33 (0)6 ## ## ## ##',
'+33 (0)7 ## ## ## ##',
'+33 (0)8 ## ## ## ##',
'+33 (0)9 ## ## ## ##',
'+33 1 ## ## ## ##',
'+33 1 ## ## ## ##',
'+33 2 ## ## ## ##',
'+33 3 ## ## ## ##',
'+33 4 ## ## ## ##',
'+33 5 ## ## ## ##',
'+33 6 ## ## ## ##',
'+33 7 ## ## ## ##',
'+33 8 ## ## ## ##',
'+33 9 ## ## ## ##',
'01########',
'01########',
'02########',
'03########',
'04########',
'05########',
'06########',
'07########',
'08########',
'09########',
'01 ## ## ## ##',
'01 ## ## ## ##',
'02 ## ## ## ##',
'03 ## ## ## ##',
'04 ## ## ## ##',
'05 ## ## ## ##',
'06 ## ## ## ##',
'07 ## ## ## ##',
'08 ## ## ## ##',
'09 ## ## ## ##',
);
}