Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove early return duplicated entry #50

Merged
merged 2 commits into from
Apr 1, 2018
Merged

Remove early return duplicated entry #50

merged 2 commits into from
Apr 1, 2018

Conversation

carusogabriel
Copy link
Contributor

We mentioned that a few lines down with a sniff implemented 馃憤

@carusogabriel carusogabriel self-assigned this Mar 30, 2018
@carusogabriel carusogabriel added this to the 5.0.0 milestone Mar 30, 2018
greg0ire
greg0ire previously approved these changes Mar 30, 2018
@@ -17,7 +17,6 @@ and [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-
exceptions/differences/extensions (:white_check_mark: are the implemented sniffs):

- Keep the nesting of control structures per method as small as possible
- Prefer early exit over nesting conditions or using else
Copy link
Contributor

Choose a reason for hiding this comment

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

This wording is maybe a little bit more clear than the one a few line down. What do you think ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mikeSimonson Good idea, gonna use it :)

alcaeus
alcaeus previously approved these changes Mar 30, 2018
@carusogabriel carusogabriel dismissed stale reviews from alcaeus and greg0ire via 58987ba March 30, 2018 18:39
@mikeSimonson mikeSimonson merged commit f1978a0 into master Apr 1, 2018
@mikeSimonson mikeSimonson deleted the early-return branch April 1, 2018 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants