Drupal Coding Standards Issues | phpcs

Created on 3 February 2023, about 2 years ago

Problem/Motivation

:\xampp\htdocs\abc\drupal\modules>phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml panel_variant_page_title

FILE: ...modules\panel_variant_page_title\panel_variant_page_title.module
----------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
7 | ERROR | [ ] Doc comment short description must be on a
| | single line, further text should be a separate
| | paragraph
71 | ERROR | [ ] The array declaration extends to column 109 (the
| | limit is 80). The array content should be split
| | up over multiple lines
113 | WARNING | [ ] Unused variable $types.
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

Time: 473ms; Memory: 10MB

Steps to reproduce

Run the following command : phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml /10.1.x/drupal/modules/contrib/panel_variant_page_title

Proposed resolution

Fix all the PHP coding standard issues.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India Charchil Khandelwal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024