Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Added Company generator for ru_RU locale #371

Merged
merged 2 commits into from
Oct 29, 2014

Conversation

kix
Copy link
Contributor

@kix kix commented Jul 17, 2014

No description provided.

{
$format = static::randomElement(static::$formats);

return $this->generator->parse(static::$format);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean parse($format), right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fzaninotto, sure, I'll update the pull request.

@fzaninotto
Copy link
Owner

please run php-cs-fixer on your code to remove extra line breaks.

$result = '';

for ($i=0; $i < mt_rand(1, 4); $i++) {
$result .= static::randomElement(static::$companyElements);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should add a companyElement formatter, and a list of formats looking like:

$companyNameFormats = array(
  '{{companyElement}}{{companySuffix}}',
  '{{companyElement}}{{companyElement}}{{companySuffix}}',
  '{{companyElement}}{{companyElement}}{{companyElement}}{{companySuffix}}',
);

that's the Faker way.

fzaninotto added a commit that referenced this pull request Oct 29, 2014
Added Company generator for ru_RU locale
@fzaninotto fzaninotto merged commit 0cc304a into fzaninotto:master Oct 29, 2014
@fzaninotto
Copy link
Owner

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants