-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Optimize code to remove phpmd suppress warnings #17805
Optimize code to remove phpmd suppress warnings #17805
Conversation
Hi @arnoudhgz. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
* @param string $value | ||
* @param string $entityTypeCode | ||
* @param bool $isAjax | ||
* @param \Magento\Framework\Stdlib\StringUtils $stringHelper | ||
* @param StringUtils $stringHelper |
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.
It's better to avoid such changes, they should be done as separate efforts.
By making the order of some checks more efficient the suppress warnings in these two files about CyclomaticComplexity and NPathComplexity.
@orlangur I updated the PR to only solve the suppress warnings issues, the import statements have been undone. |
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.
Hi @arnoudhgz,
In general - looks good, but there are some tests that are failing. Could you look into it?
Hi @arnoudhgz, |
@ihor-sviziev I think later this week I will look into it. Have been busy for a while. |
…lve-text-object-suppress-warnings
@ihor-sviziev I used a wrong method, it is solved now |
Hi @ihor-sviziev, thank you for the review. |
Hi @arnoudhgz. Thank you for your contribution. |
Description
By making the order of some checks more efficient the suppress warnings in these two files about CyclomaticComplexity and NPathComplexity.
Contribution checklist