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.

Support from Acquia helps fund testing for Drupal Acquia logo

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
FileSize
48.17 KB

Adding the patch here..

willzyx’s picture

Status: Needs review » Closed (duplicate)

Edit: sorry wrong issue :p

willzyx’s picture

Status: Closed (duplicate) » Needs review

  • willzyx committed e2d8ba1 on 8.x-1.x authored by neerajsingh
    Issue #2737039 by neerajsingh: Remove @file tag docblock from files that...
willzyx’s picture

Status: Needs review » Fixed

@neerajsingh thanks! committed and pushed to 8.x

Status: Fixed » Closed (fixed)

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