From e07784503ba9bf100c3cf2de87c2dbb04017f8a5 Mon Sep 17 00:00:00 2001 From: Lito Date: Tue, 22 Oct 2013 13:17:47 +0200 Subject: [PATCH] Added Internet strings generation to es_ES provider --- src/Faker/Provider/es_ES/Internet.php | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/Faker/Provider/es_ES/Internet.php diff --git a/src/Faker/Provider/es_ES/Internet.php b/src/Faker/Provider/es_ES/Internet.php new file mode 100644 index 00000000..45309301 --- /dev/null +++ b/src/Faker/Provider/es_ES/Internet.php @@ -0,0 +1,43 @@ +generator->parse($format)); + + return str_replace('-', '.', static::toLower(static::toAscii($user))); + } + + /** + * @example 'faber' + */ + public function domainWord() + { + list($company) = explode(' ', $this->generator->format('company')); + + return static::toLower(static::toAscii($company)); + } +}