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.
Hi,
The @file doc block MUST be present for all PHP files, with one exception: files that contain a namespaced class/interface/trait, whose file name is the class name with a .php extension, and whose file path is closely related to the namespace (under PSR-4 or a similar standard), SHOULD NOT have a @file documentation block.
Check Documentaion: API documentation and comment standards
Thanks
Comment | File | Size | Author |
---|---|---|---|
#2 | redhen-remove_wrong_doc-2877014-2-8x.patch | 20.58 KB | mgoncalves |
Comments
Comment #2
mgoncalves CreditAttribution: mgoncalves at CI&T commentedComment #3
hgunicamp CreditAttribution: hgunicamp at CI&T commentedAfter applying the 'redhen-remove_wrong_doc-2877014-2-8x.patch' patch and using the command
grep --color=auto '@file' $(find . -type f -name '*.php' -exec grep namespace {} \+ | cut -f1 -d':' | uniq)
without any '@file' occurrences.
After that I reviewed visually the patch.
It's OK for me.
Comment #4
gcbThanks for your nice clean patch and dedication to proper coding standards! committed.