Drupal Coding Standards Issues | phpcs

Created on 15 February 2023, almost 2 years ago
Updated 22 September 2023, about 1 year ago

Problem/Motivation

Getting following errors.

FILE: /var/www/html/modules/contrib/table_bs_filter/src/Plugin/Filter/TableBSFilter.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------------
66 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over multiple lines
68 | ERROR | The array declaration extends to column 107 (the limit is 80). The array content should be split up over multiple lines
70 | ERROR | The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

Time: 488ms; Memory: 6MB

Steps to reproduce

Run following command

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/table_bs_filter/

Proposed resolution

Above errors need to be fixed.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India samit.310@gmail.com

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