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

Enhancement: Slightly clean up Company provider #1783

Merged
merged 5 commits into from
Sep 18, 2019

Conversation

localheinz
Copy link
Contributor

@localheinz localheinz commented Aug 28, 2019

This PR

  • slightly cleans up the Company provider

Follows #1529.

💁‍♂ Probably best reviewed commit by commit.

@localheinz localheinz marked this pull request as ready for review August 28, 2019 21:20
$companyName = static::randomElement(static::$store) . ' ' . $lastName;
break;

if (0 === $determinator) {
Copy link
Owner

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?

Copy link
Contributor Author

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!

Copy link
Owner

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adjusted!

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

Successfully merging this pull request may close these issues.

3 participants