Skip to content

Conversation

@thomas-kl1
Copy link
Member

See previsous PR: pull/14607

@orlangur I've applied your suggestions in this new PR.

Description

I was reading some piece of code when I see te "foreach" and "break" statements. I know that the "break" should be avoided, so here my suggestion to retrieve the key of the first element of the array.
Is there a goal to do it via a foreach and break?

I've fixed also some useless "else" statements and add some ternary operators to replace the conditions where there's only a value assignment.

@orlangur orlangur self-assigned this Apr 10, 2018
@thomas-kl1
Copy link
Member Author

Hi @orlangur , any news ?

@VladimirZaets
Copy link
Contributor

VladimirZaets commented Apr 17, 2018

Hi @thomas-blackbird We took this PR in progress. PR will be merged in the nearest time.

@magento-engcom-team
Copy link
Contributor

@thomas-blackbird thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

@magento-engcom-team magento-engcom-team merged commit 6a4d654 into magento:2.2-develop Apr 28, 2018
@magento-engcom-team
Copy link
Contributor

Hi @thomas-blackbird. Thank you for your contribution.
Changes from your Pull Request will be available with the upcoming 2.2.5 release.

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.

5 participants