Drupal Coding Standards Issues | phpcs

Created on 8 February 2023, almost 2 years ago

web/modules/contrib/ebt_basic_button/ebt_basic_button.module
---------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
6 | ERROR | [x] There must be exactly one blank line after the file comment
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATION AUTOMATICALLY
---------------------------------------------------------------------------------------------

web/modules/contrib/ebt_basic_button/src/Plugin/Field/FieldWidget/EbtSettingsBasicButtonWidget.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
34 | WARNING | [x] A comma should follow the last multiline array item. Found: 0
138 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
145 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
158 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

📌 Task
Status

Fixed

Version

1.4

Component

Code

Created by

🇮🇳India himanshu_jhaloya Indore

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

Comments & Activities

Production build 0.71.5 2024