Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Upgrade PSR2 -> PSR12 for ControlStructureSpacing #416

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

Open
fredden wants to merge 8 commits into magento:develop
base: develop
Choose a base branch
Loading
from fredden:psr-control-structure-spacing

Conversation

Copy link
Member

@fredden fredden commented Jul 12, 2022
edited
Loading

I have noticed that this coding standard is using PSR2.ControlStructures.ControlStructureSpacing and PSR12.ControlStructures.ControlStructureSpacing is also available. From what I can tell, the latter includes checks from the former and some additional useful checks. This pull request changes to use the new version of this sniff.

Fixes YouweGit/coding-standard-magento2#6
Related to: #128

Morgy93 and ihor-sviziev reacted with thumbs up emoji
Copy link
Member Author

fredden commented Feb 27, 2023

@sidolov what needs to happen to get this merged in? Is there anything I can do to help with that?

ihor-sviziev reacted with thumbs up emoji

Copy link
Contributor

@magento import PR to magento-commerce/magento-coding-standard repository

Copy link
Contributor

@sinhaparul the Pull Request is successfully imported.

Copy link
Member

Morgy93 commented Dec 9, 2023

So, what is blocking this PR?

Since PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace conflicts with PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine and PSR2 has been

Deprecated - As of 2019年08月10日 PSR-2 has been marked as deprecated. PSR-12 is now recommended as an alternative.
https://www.php-fig.org/psr/psr-2/

I'd love to advance it before 2024. 🤓

ihor-sviziev reacted with thumbs up emoji

Copy link
Collaborator

@sinhaparul @sidolov, is there any reason not to merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@ihor-sviziev ihor-sviziev ihor-sviziev approved these changes

Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Youwe/Global/Common standard conflicts with Magento Coding standards

AltStyle によって変換されたページ (->オリジナル) /