magento-coding-standard
magento-coding-standard copied to clipboard
Upgrade PSR2 -> PSR12 for ControlStructureSpacing
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 https://github.com/YouweGit/coding-standard-magento2/issues/6 Related to: #128
@sidolov what needs to happen to get this merged in? Is there anything I can do to help with that?
@magento import PR to magento-commerce/magento-coding-standard repository
@sinhaparul the Pull Request is successfully imported.
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. 🤓
@sinhaparul @sidolov, is there any reason not to merge this?