From 88d35688abe3d882507673814a45a4aae65e93b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivannis=20Su=C3=A1rez=20J=C3=A9rez?= Date: Fri, 23 Nov 2012 10:01:29 +0100 Subject: [PATCH 1/2] Added es_ES Provider --- src/Faker/Provider/es_ES/Address.php | 101 +++++++++++++++++++++++ src/Faker/Provider/es_ES/Company.php | 80 ++++++++++++++++++ src/Faker/Provider/es_ES/Person.php | 45 ++++++++++ src/Faker/Provider/es_ES/PhoneNumber.php | 29 +++++++ 4 files changed, 255 insertions(+) create mode 100644 src/Faker/Provider/es_ES/Address.php create mode 100644 src/Faker/Provider/es_ES/Company.php create mode 100644 src/Faker/Provider/es_ES/Person.php create mode 100644 src/Faker/Provider/es_ES/PhoneNumber.php diff --git a/src/Faker/Provider/es_ES/Address.php b/src/Faker/Provider/es_ES/Address.php new file mode 100644 index 00000000..07cc1dd4 --- /dev/null +++ b/src/Faker/Provider/es_ES/Address.php @@ -0,0 +1,101 @@ + Date: Fri, 23 Nov 2012 10:10:40 +0100 Subject: [PATCH 2/2] changed 'comunity' by community --- src/Faker/Provider/es_ES/Address.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Faker/Provider/es_ES/Address.php b/src/Faker/Provider/es_ES/Address.php index 07cc1dd4..a6bd7389 100644 --- a/src/Faker/Provider/es_ES/Address.php +++ b/src/Faker/Provider/es_ES/Address.php @@ -11,7 +11,7 @@ class Address extends \Faker\Provider\Address 'Calle', 'Avenida', 'Plaza', 'Paseo', 'Ronda', 'Travesia', 'Camino', 'Carrer', 'Avinguda', 'Plaça', 'Passeig', 'Travessera', 'Rúa', 'Praza', 'Ruela', 'Camiño' ); protected static $postcode = array('#####'); - protected static $comunity = array( + protected static $community = array( 'Andalucía', 'Aragón', 'Principado de Asturias', 'Illes Balears', 'Canarias', 'Cantabria', 'Castilla y León', 'Castilla - La Mancha', 'Cataluña', 'Comunitat Valenciana', 'Extremadura', 'Galicia', 'Comunidad de Madrid', 'Región de Murcia', 'Comunidad Foral de Navarra', 'País Vasco', 'La Rioja', 'Ceuta', 'Melilla' ); protected static $state = array( @@ -94,8 +94,8 @@ class Address extends \Faker\Provider\Address /** * @example 'Comunidad de Madrid' */ - public static function comunity() + public static function community() { - return static::randomElement(static::$comunity); + return static::randomElement(static::$community); } }