Fix the issues reported by phpcs

Created on 7 July 2023, 12 months ago
Updated 13 July 2023, 12 months ago

Problem/Motivation

FILE: /var/www/html/vb/d_cont/eca_metatag/src/Event/TagsEvent.php
--------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------
21 | ERROR | Missing short description in doc comment
22 | ERROR | Description for the @return value is missing
28 | ERROR | Missing short description in doc comment
28 | ERROR | Parameter $name is not described in comment
28 | ERROR | Parameter $label is not described in comment
28 | ERROR | Parameter $description is not described in comment
29 | ERROR | Missing parameter comment
29 | ERROR | Doc comment for parameter $tags does not match actual variable
| | name $description
--------------------------------------------------------------------------------

FILE: .../www/html/vb/d_cont/eca_metatag/src/EventSubscriber/EcaEventSubscriber.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
9 | ERROR | [x] Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/eca_metatag/eca_metatag.install
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

Time: 86ms; Memory: 10MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig eca_metatag/

Remaining tasks

Patch review

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India urvashi_vora Madhya Pradesh, India

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024