Drupal calls should be avoided in classes

Created on 29 June 2023, over 1 year ago

Problem/Motivation

$ phpcs --standard=Drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml src/

FILE: ...htdocs\drupal9\web\modules\contrib\address_suggestion\src\QueryService.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------
40 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
45 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
50 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------

Time: 650ms; Memory: 6MB

📌 Task
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

🇮🇳India Priya_Degwekar

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

Comments & Activities

Production build 0.71.5 2024