From 54055cc57dc7d4472402076c5dd4c4c8cd27d2de Mon Sep 17 00:00:00 2001 From: bazo Date: Mon, 30 Jul 2012 00:43:30 +0200 Subject: [PATCH] city formatter ok --- src/Faker/Provider/sk_SK/Address.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Faker/Provider/sk_SK/Address.php b/src/Faker/Provider/sk_SK/Address.php index 9e476920..06709227 100644 --- a/src/Faker/Provider/sk_SK/Address.php +++ b/src/Faker/Provider/sk_SK/Address.php @@ -5,7 +5,7 @@ namespace Faker\Provider\sk_SK; class Address extends \Faker\Provider\Address { - protected static $city = array( + protected static $cityName = array( 'Ábelová', 'Abovce', 'Abrahám', 'Abrahámovce', 'Abrahámovce', 'Abramová', 'Abranovce', 'Adamovské Kochanovce', 'Adidovce', 'Alekšince', 'Andovce', 'Andrejová', 'Ardanovce', 'Ardovo', 'Arnutovce', 'Báb', 'Babie', 'Babín', 'Babiná', 'Babindol', 'Babinec', 'Bacúch', 'Bacúrov', 'Báč', 'Bačka', 'Bačkov', 'Bačkovík', 'Bádice', 'Badín', 'Baďan', 'Báhoň', 'Bajany', 'Bajč', 'Bajerov', 'Bajerovce', 'Bajka', 'Bajtava', @@ -323,7 +323,7 @@ class Address extends \Faker\Provider\Address 'Východný Timor', 'Zambia', 'Zimbabwe', 'Zvrchovaný vojenský špitálsky rád sv. Jána Jeruzalemského z Ródu a Malty' ); protected static $cityFormats = array( - '{{city}}' + '{{cityName}}' ); protected static $streetNameFormats = array( '{{firstName}} {{streetSuffix}}', @@ -336,5 +336,10 @@ class Address extends \Faker\Provider\Address protected static $addressFormats = array( '{{streetAddress}}\n {{postcode}}\n {{city}}', ); + + public static function cityName() + { + return static::randomElement(static::$cityName); + } } \ No newline at end of file