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.

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
new36.11 KB

Attaching the patch here.

japerry’s picture

gaurav.kapoor’s picture

Status: Needs review » Needs work

I got this error , when i tested the patch in #3 "error: src/EventSubscriber/WizardControllerSubscriber.php: No such file or directory"

gaurav.kapoor’s picture

StatusFileSize
new35.69 KB

Minor Bug fixes and error fixed.

darrenwh’s picture

Status: Needs work » Needs review
damienmckenna’s picture

StatusFileSize
new36.12 KB
new441 bytes

One more was added recently.

damienmckenna’s picture

Priority: Normal » Minor
Status: Needs review » Reviewed & tested by the community

Yes, breaking tradition and RTBCing the issue I uploaded a patch to. Lets get this committed.

  • DamienMcKenna authored abea181 on 8.x-3.x
    Issue #2734137 by DamienMcKenna, neerajsingh, gaurav.kapoor: Remove @...
eclipsegc’s picture

Status: Reviewed & tested by the community » Fixed

Fixed

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Because of this patch , at some of places namespace is either 2nd or 3rd line. We need follow up to fix wrong coding standard introduced by this one.