-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Enhancement: Slightly clean up Company provider #1783
Conversation
src/Faker/Provider/nl_NL/Company.php
Outdated
$companyName = static::randomElement(static::$store) . ' ' . $lastName; | ||
break; | ||
|
||
if (0 === $determinator) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's wrong with switch / case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably a matter of personal taste - personally I avoid to use it because
- it usually requires a lot more code
- it uses weak comparisons
But if you prefer, I can revert this change!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I personally have nothing against switch/case, so please revert just that part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjusted!
32cb26e
to
42858a7
Compare
This PR
Company
providerFollows #1529.
💁♂ Probably best reviewed commit by commit.