Skip to content

Conversation

@adrian-martinez-interactiv4
Copy link
Owner

Original Pull Request

magento#14609
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.

@adrian-martinez-interactiv4 adrian-martinez-interactiv4 merged commit 4276a24 into 2.3-develop Oct 8, 2018
adrian-martinez-interactiv4 pushed a commit that referenced this pull request Sep 11, 2019
adrian-martinez-interactiv4 pushed a commit that referenced this pull request Oct 3, 2019
adrian-martinez-interactiv4 pushed a commit that referenced this pull request Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants