Drupal coding standards

Created on 13 February 2024, 9 months ago
Updated 18 April 2024, 7 months ago

Problem/Motivation

Need to fix Drupal coding standards.

$ ddev phpcs

FILE: /var/www/html/web/modules/custom/webform/modules/webform_devel/src/Commands/WebformDevelCommands.php
------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------
 64 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal)
------------------------------------------------------------------------------------------------------------------------------------------------

Time: 22.29 secs; Memory: 56MB


PHP CODE SNIFFER REPORT SUMMARY
-------------------------------------------------------------------------------------------------------------------------
FILE                                                                                                     ERRORS  WARNINGS
-------------------------------------------------------------------------------------------------------------------------
/var/www/html/web/modules/custom/webform/modules/webform_devel/src/Commands/WebformDevelCommands.php     0       1
-------------------------------------------------------------------------------------------------------------------------
A TOTAL OF 0 ERRORS AND 1 WARNING WERE FOUND IN 1 FILE
-------------------------------------------------------------------------------------------------------------------------


PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
----------------------------------------------------------------------
SOURCE                                                           COUNT
----------------------------------------------------------------------
DrupalPractice.Objects.GlobalDrupal.GlobalDrupal                 1
----------------------------------------------------------------------
A TOTAL OF 1 SNIFF VIOLATION WERE FOUND IN 1 SOURCE
----------------------------------------------------------------------
πŸ“Œ Task
Status

Fixed

Version

6.2

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine ankondrat4 Lutsk

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