-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Removed unreachable code #17256
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
Removed unreachable code #17256
Conversation
Hi @sreichel. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant 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.
Some static tests fails because with your refactoring the method parameter $attribute
is not used any more.
Please, add a @SuppressWarnings(PHPMD.UnusedFormalParameter)
directive in method's docblock to avoid the static test to fail.
@@ -104,18 +104,6 @@ public function __construct( | |||
public function cancel($id) |
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.
Some static tests fails because with your refactoring the method parameter $id
is not used any more.
Please, add a @SuppressWarnings(PHPMD.UnusedFormalParameter)
directive in method's docblock to avoid the static test to fail.
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. Fixed it.
Hi @aleron75, thank you for the review. |
Hi @sreichel. Thank you for your contribution. |
Description
Removed return statements that are never reached.
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist