Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is a sub issue of #2734539: Make coder more PHPCS compliant
This is an attempt to fix all errors other than
PEAR.Commenting.FunctionComment.Missing
PEAR.Commenting.FunctionComment.MissingParamComment
Squiz.PHP.DisallowInlineIf.Found
in all files other than
DrupalPractice/Sniffs/CodeAnalysis/VariableAnalysisSniff.php
Comment | File | Size | Author |
---|---|---|---|
#4 | 2747101-4.patch | 3.06 KB | chipway |
#2 | coder-fix-coding-standards-misc-issues-2747101-2.patch | 5.73 KB | anoopjohn |
Comments
Comment #2
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commentedPlease find attached a patch to fix these errors
Comment #3
klausiI think this is quite useless information that we should not add on purpose. The code should also run on PHP 7 for example.
why are we removing the @deprecated tag? I think it should stay. If PHPCS is complaining about it the we should disable that complaint in our phpcs.xml.dist.
Comment #4
chipway CreditAttribution: chipway at Chipway commentedPatch do not apply anymore and rebase conflicts. Rewrote the patch including #3.
Comment #5
klausiThanks, please create a pull request against https://github.com/klausi/coder and link it here.
Comment #6
chipway CreditAttribution: chipway at Chipway commentedThanks Klausi, but I don't use github because we have our own git tool. I will try but I can't do this soon. BTW, do you have some quick guide?
Comment #7
klausiSure: fork the repository on Github, push your changes to your fork, a new button to create a pull request shows up at https://github.com/klausi/coder .
More info should be at https://help.github.com/articles/about-pull-requests/
Comment #8
chipway CreditAttribution: chipway at Chipway commentedThanks, :-)
Is this link the one you need? https://github.com/chipway/coder/pull/1
Comment #9
klausiAlmost there, but you should file the pull request against https://github.com/klausi/coder :)
Comment #10
chipway CreditAttribution: chipway at Chipway commentedIs this ok? https://github.com/klausi/coder/pull/14
Comment #12
klausimerged, thanks!