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.
There were some issues with coding standards, so I created a patch to fix some issues found on coder. Left some issues like "Type hint 'array' missing" and "Missing parameter type". If you find those issues to be critical, just change this Issue to "needs work".
Comment | File | Size | Author |
---|---|---|---|
#5 | interdiff.txt | 3.15 KB | Yago Elias |
#5 | coding_standards-2888112-5.patch | 4.42 KB | Yago Elias |
#2 | coding_standards-2888112-2.patch | 4.71 KB | Algarte |
Comments
Comment #2
Algarte CreditAttribution: Algarte at CI&T commentedComment #3
Algarte CreditAttribution: Algarte at CI&T commentedComment #4
Algarte CreditAttribution: Algarte at CI&T commentedComment #5
Yago Elias CreditAttribution: Yago Elias as a volunteer and at CI&T commentedHi @algaerte! Just some small fixes!
Comment #6
Algarte CreditAttribution: Algarte at CI&T commentedThank you @Yago Elias for pointing out those issues. I realized that i don't need to fix all warnings and errors.
Some of them are false positives or does not make sense to fix.
I tested your patch and it worked fine.
Thanks once again.
Comment #7
pjcdawkins CreditAttribution: pjcdawkins commentedI can run some clean-up before the next release, but it's not going to be following an automatic checker.
This docblock might be following the letter of a coding standard, but it's not an improvement.
In Drupal's coding standards, "constants" including TRUE, FALSE and NULL should be in uppercase, so this fix is invalid (see https://www.drupal.org/docs/develop/standards/coding-standards).
Comment #8
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedFound this issue after fixing the code standards for Drupal 7.
Comment #10
jcnventura CreditAttribution: jcnventura at 1xINTERNET commented