-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update code to reduce redundancy and simplify readability #28608
Conversation
Hi @df2k2. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution. Please review my Code Review comments.
Co-authored-by: Lukasz Bajsarowicz <lukasz.bajsarowicz@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
@magento run Functional Tests CE Looks like the failing test is flaky one. Trying to re-run it and in the meantime, I'm accepting the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️ Thank you for your contribution!
Hi @lbajsarowicz, thank you for the review.
|
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️ Thanks for your input.
Hi @lbajsarowicz, thank you for the review.
|
@lbajsarowicz Could you put an appropriate label for test coverage? |
@engcom-Alfa This class is one of the most-covered ones, that is the result of the dependencies relying on this class. |
✔️ QA Passed |
@magento create issue |
Hi @df2k2, thank you for your contribution! |
Simplified code complexity by optimizing logic, redundant variable assignments, over-usage of returns within a function. Eliminated needless and redundant variable assignment.
Description (*)
Simplifying logic and readability randomly
Manual testing scenarios (*)
lib/internal/Magento/Framework/App/Request/Http.php
Questions or comments
No.
Contribution checklist (*)
Resolved issues: