Drupal coding standards

Created on 3 August 2022, over 2 years ago
Updated 31 May 2023, almost 2 years ago

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

FILE: /var/www/html/vb/drupal-2821827/modules/contrib/ckeditor_templates_ui/src/CkeditorTemplatesUi.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Missing class doc comment
36 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/vb/drupal-2821827/modules/contrib/ckeditor_templates_ui/src/Form/CkeditorTemplateForm.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------
74 | WARNING | Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders
--------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/vb/drupal-2821827/modules/contrib/ckeditor_templates_ui/ckeditor_templates_ui.post_update.php
-----------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
11 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
13 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------

Time: 202ms; Memory: 10MB

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Munavijayalakshmi

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