As per coding standard documentation at 'https://www.drupal.org/coding-standards/docs', @file tag docblock should not be there in the files that contain a namespaced class/interface/trait, whose file name is the class name with a .php extension.

CommentFileSizeAuthor
#2 removed-file-docblock-2844828-2.patch1.41 KBaks22
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aks22 created an issue. See original summary.

aks22’s picture

Status: Active » Needs review
FileSize
1.41 KB
iStryker’s picture

I read

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.

  • iStryker committed 7e7f63a on 8.x-1.x authored by aks22
    Issue #2844828 by aks22: PHP files modification as per drupal standards
    
iStryker’s picture

Category: Bug report » Task
Status: Needs review » Fixed

I don't really understand that docs, but I see all of core modules files not have @file. Committing.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.