From 7b0cb531b2c9df0750eb330aa2f1da7ce06e61fb Mon Sep 17 00:00:00 2001 From: Roman Vasilyev Date: Wed, 12 Dec 2012 21:35:08 +0200 Subject: [PATCH] Utils class become Transliteration --- src/Faker/Provider/ua_UA/Internet.php | 4 ++-- src/Faker/Provider/ua_UA/{Utils.php => Transliteration.php} | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/Faker/Provider/ua_UA/{Utils.php => Transliteration.php} (92%) diff --git a/src/Faker/Provider/ua_UA/Internet.php b/src/Faker/Provider/ua_UA/Internet.php index cdb3545d..79bc23fd 100644 --- a/src/Faker/Provider/ua_UA/Internet.php +++ b/src/Faker/Provider/ua_UA/Internet.php @@ -14,7 +14,7 @@ class Internet extends \Faker\Provider\Internet { $format = static::randomElement(static::$userNameFormats); return static::toLower(static::bothify( - Utils::cyrillicToLatin($this->generator->parse($format)) + Transliteration::transliterate($this->generator->parse($format)) ) ); } @@ -26,7 +26,7 @@ class Internet extends \Faker\Provider\Internet { $company = $this->generator->format('companyUrl'); $company = str_replace(' ', '-', $company); - $company = Utils::cyrillicToLatin($company); + $company = Transliteration::transliterate($company); return $company; } } diff --git a/src/Faker/Provider/ua_UA/Utils.php b/src/Faker/Provider/ua_UA/Transliteration.php similarity index 92% rename from src/Faker/Provider/ua_UA/Utils.php rename to src/Faker/Provider/ua_UA/Transliteration.php index 84d4e097..2cd4d65a 100644 --- a/src/Faker/Provider/ua_UA/Utils.php +++ b/src/Faker/Provider/ua_UA/Transliteration.php @@ -3,9 +3,9 @@ namespace Faker\Provider\ua_UA; /** - * Some utils what ua_UA provider needs + * Cyrillic to latin transliteration util */ -Class Utils +Class Transliteration { /** * Translate cyrillic text to latin @@ -13,7 +13,7 @@ Class Utils * @param string $string * @return string */ - public static function cyrillicToLatin($string = '') { + public static function transliterate($string = '') { $replace=array( "'"=>"", "`"=>"",