-
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
per PSR2 recommendation, ElseIf should be used instead of else-if #23101
per PSR2 recommendation, ElseIf should be used instead of else-if #23101
Conversation
Hi @sankalpshekhar. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @sankalpshekhar, |
Thanks @sankalpshekhar, we don't need a manual PR for such change though as all such occurrences will be fixed automatically. |
Hi @sankalpshekhar, thank you for your contribution! |
@orlangur Could you help on the steps laid out for this to be fixed automatically? From what I see the last commit on these files, the oldest being almost a year old and they haven't been fixed yet. |
@sankalpshekhar |
@orlangur I see that the standards are still being finalized, including versioning. Do we have a release date on when this would be applied to the framework? |
@sankalpshekhar I believe we can do it during June and target |
@orlangur: can we attempt to put this code standard changes in as few commits as possible, even maybe dedicate a separate release for this? I don't want to go figuring out again what actually changed in the code besides the code standards changes. Having a dedicated release number for only code standards applying would make it more clear and will help a lot with upgrading shops to a newer version where we can then easily see the more "significant" changes in the codebase (and ignore the code standard changes). |
@hostep thanks, will keep this in mind. I remember such approach used only once for copyright year update, probably makes sense if we will update PHPDocs massively. UPD:
Wow, this is really awkward use case, people usually rely on automation these days. I don't think it justifies a separate release, ignoring minimalistic amount of CS-related commit should be sufficient (and this is much better than hundreds of manual fixes in different commits being contributed currently). |
If you know of such an automation tool, feel free to share. The best one we found this far is just detecting changes, but not applying those changes automatically, this is https://github.com/AmpersandHQ/ampersand-magento2-upgrade-patch-helper Sorry for going completely off topic here :) |
@hostep no-no, I meant it's quite strange to look into diffs, just write enough automated tests and run them whenever you upgrade :) |
Magento tends to fix security related issues in phtml files by introducing escape functions for example. I'm not sure if tests can catch these changes in overwritten phtml files in a custom theme? Since the output will be exactly the same if no weird data was passed. While your custom theme then might contain vulnerable code which was fixed in core Magento. |
Description (*)
This per updates usage of ELSE-IF to ElseIf, per PSR2 recommendation.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)