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

Attaching the patch here..

neerajsingh’s picture

Assigned: neerajsingh » Unassigned
Status: Needs work » Needs review

romainj’s picture

Status: Needs review » Fixed

Issue fixed in the latest dev version. Thanks for your feedback.

Status: Fixed » Closed (fixed)

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