1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-04-19 15:01:54 +02:00

676 Commits

Author SHA1 Message Date
Francois Zaninotto
7a1cd40c6c Merge pull request #114 from csanquer/feature_firstname_gender
Add firstname gender method to all Person provider
2014-04-14 14:12:42 +02:00
Charles SANQUER
faa49e4e54 add gender parameter to Person firstname and name methods
add FirstNameMale and FirstNameFemale method to all Person classes

add gender parameter to some localized lastname and prefix method

update README

add missing prefix method for bg_BG Person provider

set male and female firstnames for netherland locales

refactore is_IS firstname providers

add more values for gender parameter

rename person prefix methods to title and refactore them

separate male and female en_US firstname

update all Person Providers

add some unit tests for man, woman firstname and title

replace male and female title by academic degrees only for pl_PL

add polish names source comment

update male and female firstname for fr_FR, fr_CA and fr_BE

update male and female firstnames for es_AR, es_ES and es_PE

update male and female firstnames for pt_BR

update male and female firstnames and titles for it_IT

change title behavior for cs_CZ

update male and female firstnames for da_DK

change title behavior for nl_NL

update male and female firstnames for hu_HU

fix PSR2 coding style

fix PSR2 coding style

update male and female bengali titles

fix firstnames unit tests for me_ME

update male and female firstnames and titles for en_ZA and fi_FI (some names stay with gender unkown)

update male and female firstnames for lv_LV

update male and female firstnames for tr_TR

update male and female firstnames for zh_CN

update male and female firstnames for ja_JP

update male and female firstnames for fi_FI

update male and female firstnames for bn_BD

update male and female firstnames for ru_RU

fix title method for sk_SK

update partially male and female firstnames for sr_*

update README

remove deprecated comments

update male and female firstnames and title for hy_AM

update male and female firstnames for uk_UA

add gender option to name formatter

fix PSR2 coding style

make gender option more simple and improve implementation

restore unknown gender firstnames into male and female firstnames list

update es_ES firstnames list

restore source link for sr_RS Person firstname provider

simplify Person name unit test
2014-04-14 09:10:25 +02:00
Francois Zaninotto
ef047cc3ea Fix test failing due to bad luck
Sometimes shit happens... The Romanian national identity card number
generator generated a non-exisiting date (02/29/98). Fixing the seed
solves the problem.
2014-04-13 22:31:02 +02:00
Francois Zaninotto
675fe90cce Merge pull request #273 from terite/psr2
Sniff PSR-2 as part of travis + fixes + PR 210
2014-04-13 22:04:49 +02:00
Francois Zaninotto
bfa502d889 Reorder documentation
* Move more common formatters first
* make it obvious that `realTest` outputs real text
* reduce the image formatters doc (the readme doesn't replace the phpDoc)
2014-04-13 21:38:56 +02:00
David Stensland
f4fc697af8 Allow more recent versions of PHPUnit 2014-04-07 01:27:54 -04:00
David Stensland
041cecffd6 psr-2 fixes 2014-04-07 01:27:54 -04:00
David Stensland
0b7de5c0e6 Add php_codesniffer and run before tests. run vendor PHPUnit, too 2014-04-07 01:27:54 -04:00
Lucas
73f0145585 Add PHPUnit 4.0.* to require-dev 2014-04-07 01:27:54 -04:00
Francois Zaninotto
a277bf23f9 Merge pull request #291 from cinan/patch-1
Fixing Internet provider for sk_SK locale
2014-04-04 10:07:01 +02:00
cinan
f43733a6ec Missing another letters containing diacritics
Letter 'ä' and 'Ä' were missing
2014-04-03 13:38:45 +02:00
cinan
c7efb35582 FIX: invalid email domain 2014-04-03 13:10:02 +02:00
cinan
123b248470 Missing some letters containing diacritics
Letter 'ľ' and 'Ľ' were missing
2014-04-03 13:07:31 +02:00
Francois Zaninotto
f607027269 Fix unit test due to fixed date 2014-04-01 22:16:52 +02:00
Francois Zaninotto
2fc67a37bd Merge pull request #290 from bjorntheart/bugfix/typo-in-tld
fix typo in en_ZA Internet provider
2014-04-01 17:09:42 +02:00
Bjorn Theart
40d8116e26 fix typo in en_ZA Internet provider 2014-04-01 11:07:36 +02:00
Francois Zaninotto
991e39d280 Merge pull request #289 from stof/patch-1
Fixed phpdoc for DateTime magic methods
2014-03-26 18:22:53 +01:00
Christophe Coevoet
08095b1a61 Fixed phpdoc for DateTime magic methods 2014-03-25 16:14:31 +01:00
Francois Zaninotto
392e191eba Merge pull request #286 from fzaninotto/seed_datetime_readme
add doc about seeding with maximum timestamp using dateTime formatters
2014-03-21 18:25:56 +01:00
Francois Zaninotto
3da8c930ed Fix code highlighting 2014-03-21 18:25:22 +01:00
Francois Zaninotto
98f400afc8 add doc about seeding with maximum timestamp using dateTime formatters 2014-03-21 18:22:03 +01:00
Francois Zaninotto
4ca3829d9d Fix coding standards (run php-cs-fixer) 2014-03-13 19:33:34 +01:00
Francois Zaninotto
3087b69d33 Fix coding standards on me_ME provider 2014-03-13 19:32:44 +01:00
Francois Zaninotto
82a4113124 Merge pull request #257 from ognjenm/master
Added ME (Montenegrian) localisation
2014-03-13 18:57:47 +01:00
Francois Zaninotto
4207ee3e51 Merge pull request #278 from nineinchnick/barcodes
add ean barcode provider
2014-03-11 16:45:40 +01:00
John Was
dd9ba3eb54 add phpdoc comments and updated readme.md 2014-03-11 16:27:17 +01:00
ognjen miletic
8999d60785 fix 2014-03-11 13:57:34 +01:00
ognjen miletic
52fb117db2 Separated male and female names 2014-03-11 13:40:36 +01:00
Francois Zaninotto
6504aec265 Merge pull request #274 from stefanosala/feature/fullpath
Added fullPath parameter to Image provider
2014-03-11 09:25:24 +01:00
Francois Zaninotto
126e846b76 Merge pull request #277 from nineinchnick/improve-pl-company
Improve pl company
2014-03-11 09:24:23 +01:00
Stefano Sala
4045951fb4 Updated docs for $fullPath Image provider parameter 2014-03-11 09:21:28 +01:00
Stefano Sala
c9dcc8a354 Added fullPath parameter to Image provider to be able to have just the filename 2014-03-11 09:19:28 +01:00
Francois Zaninotto
7f51ceeac3 Merge pull request #275 from nineinchnick/realText-pl
realText in pl_PL
2014-03-11 09:07:40 +01:00
John Was
86e8ad2c08 add ean barcode provider 2014-03-11 00:54:15 +01:00
John Was
6017a9c77a improve common company names pattern probability 2014-03-11 00:02:36 +01:00
John Was
0457ecb0cb improve polish company names 2014-03-11 00:00:19 +01:00
John Was
1e88eee0f4 added Polish text for realText generator
replace the text with one with more modern language
2014-03-10 22:49:58 +01:00
Francois Zaninotto
9933d3a056 Merge pull request #272 from csanquer/maximum_timestamp
add Maximum Timestamp option to get always same unix timestamp when using a fixed seed
2014-03-10 18:20:59 +01:00
Charles Sanquer
1a8feb646e add Maximum Timestamp option to get always same unix timestamp when using a fixed seed
fix and improve unit tests when setting endMaximumTimestamp

change static maximumEndTimestamp to an optional parameter $max in each
datetime methods

some improvements to DateTimeProvider max timestamp
2014-03-10 15:41:46 +01:00
Francois Zaninotto
d99a2df148 Merge pull request #270 from terite/remove-array-rand
Remove array_rand from use
2014-03-08 22:28:52 +01:00
David Stensland
9adde3415a Remove array_rand 2014-03-07 17:36:14 -05:00
Francois Zaninotto
5be755ad0f Merge pull request #266 from terite/randomElements
add Faker\Provider\Base::randomElements
2014-03-06 14:55:13 +01:00
David Stensland
6d2253cc56 Rewrite randomElement to use randomElements, and add test 2014-03-06 08:36:53 -05:00
David Stensland
a68fa66941 Lower randomElements defaults and add readme a note
Also tidied up the LengthException message, and made randomElements
just a tiny bit faster by moving the array lookup to after a unique
random value is chosen.
2014-03-06 07:55:25 -05:00
David Stensland
176507cc26 make randomElements ~12% faster 2014-03-05 13:36:24 -05:00
David Stensland
6d7f9f4495 optimize randomElements performance 2014-03-05 12:55:08 -05:00
David Stensland
cae91904b8 add Faker\Provider\Base::randomElements 2014-03-05 12:37:52 -05:00
Francois Zaninotto
a03cd76b1c Fix realText order limit 2014-03-05 15:56:02 +01:00
Francois Zaninotto
1800e885b5 Limit Markov chain order to 5
Higher orders produce about the same randomness.
2014-03-04 18:41:43 +01:00
Francois Zaninotto
eeb39d19eb Fix PHP 5.3 compatibility 2014-03-03 22:12:07 +01:00