Skip to content

Conversation

localheinz
Copy link
Contributor

@localheinz localheinz commented Jun 5, 2019

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets n/a
Documentation n/a
License MIT

What's in this PR?

This PR

  • extracts a method which ensures that a result is - or converts it to - a callable
  • returns early
  • uses if instead of switch

Why?

This greatly improves the legibility (in my opinion).

@localheinz localheinz force-pushed the feature/extract branch 3 times, most recently from 8a339eb to 8d03752 Compare June 5, 2019 15:46
Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

it makes sense to extract this.

@dbu dbu merged commit 79f11ad into php-http:master Jun 20, 2019
@localheinz localheinz deleted the feature/extract branch June 20, 2019 14:29
@localheinz
Copy link
Contributor Author

Thank you, @dbu!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants