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.

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.

CommentFileSizeAuthor
#3 token-2734163-3.patch13.39 KBneerajsingh

Comments

neerajsingh created an issue. See original summary.

neerajsingh’s picture

Assigned: Unassigned » neerajsingh
Status: Active » Needs work
neerajsingh’s picture

Assigned: neerajsingh » Unassigned
Status: Needs work » Needs review
StatusFileSize
new13.39 KB

Attaching the patch here.

bojanz’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

  • Berdir committed 359bf05 on 8.x-1.x authored by neerajsingh
    Issue #2734163 by neerajsingh: Remove @file tag docblock from files that...
berdir’s picture

Status: Reviewed & tested by the community » Fixed

Lets hope this won't conflict with too many patches. Committed.

Status: Fixed » Closed (fixed)

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