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.
Problem/Motivation
Delete double ";;"
Proposed resolution
Enable the Generic.CodeAnalysis.EmptyPHPStatement PHPCS sniff for this
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
Generic.CodeAnalysis.EmptyPHPStatement enabled in phpcs.xml to prevent empty PHP statements.
Comment | File | Size | Author |
---|---|---|---|
#6 | 3041985-6.patch | 16.62 KB | alexpott |
#6 | 3-6-interdiff.txt | 5.32 KB | alexpott |
#3 | core_double-3041985-3.patch | 12.53 KB | pifagor |
Comments
Comment #2
pifagorComment #3
pifagorComment #4
volegerInteresting. Looks good for me.
Wondering can we add the codesniffer rule for such a situation for Drupal coder?
Comment #5
alexpottThere is a code sniffer thing for this already.
Comment #6
alexpottAs a coding standard rule change targeting 8.7.x beta.
Comment #7
alexpottComment #8
pifagorLooks good for me.
Comment #9
alexpottComment #12
catchCommitted/pushed to 8.8.x and cherry-picked to 8.7.x, thanks!