Fix the issues reported by phpcs

Created on 11 July 2023, over 1 year ago
Updated 13 July 2023, over 1 year ago

Problem/Motivation

FILE: .../html/vb/d_cont/content_update_email_sending/content_update_email_sending.module
--------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 1 WARNING AFFECTING 7 LINES
--------------------------------------------------------------------------------------
42 | ERROR | [ ] The array declaration extends to column 153 (the limit is 80).
| | The array content should be split up over multiple lines
48 | ERROR | [ ] The array declaration extends to column 151 (the limit is 80).
| | The array content should be split up over multiple lines
56 | ERROR | [ ] Missing parameter comment
58 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
58 | ERROR | [ ] Missing parameter comment
60 | ERROR | [ ] If there is no return value for a function, there must not be a
| | @return tag.
60 | ERROR | [ ] Description for the @return value is missing
75 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
82 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------

Time: 69ms; 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 content_update_email_sending/

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.71.5 2024