\Drupal calls should be avoided in classes, use dependency injection instead

Created on 7 July 2023, 12 months ago

Problem/Motivation

FILE: /var/www/html/vb/d_cont/atsmarttag/src/Form/ATSmartTagDialog.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------
239 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
254 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
267 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------

Time: 118ms; Memory: 10MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig atsmarttag/

Remaining tasks

Patch review

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India urvashi_vora Madhya Pradesh, India

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

Comments & Activities

Production build 0.69.0 2024