Drupal Coding Standards Issues | phpcs

Created on 6 December 2022, over 1 year ago
Updated 27 January 2023, over 1 year ago

Problem/Motivation

Getting following error/warnings

FILE: /app/modules/contrib/honeypot/honeypot.module
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------
93 | ERROR | The array declaration extends to column 106 (the limit is 80). The array content should be split up over multiple lines
100 | ERROR | The array declaration extends to column 104 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /app/modules/contrib/honeypot/src/Event/HoneypotRejectEvent.php
---------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------
21 | ERROR | Class property $form_id should use lowerCamel naming without underscores
---------------------------------------------------------------------------------------

FILE: /app/modules/contrib/honeypot/src/HoneypotService.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
283 | ERROR | The array declaration extends to column 87 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

Time: 678ms; Memory: 12MB

Steps to reproduce

Run following command

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

Note: Not validating README.md file, as it has some commands.

Proposed resolution

Above error/warnings need to be fixed

๐Ÿ› Bug report
Status

Closed: won't fix

Version

2.1

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia samit.310@gmail.com

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024