Drupal calls should be avoided in classes

Created on 29 June 2023, about 1 year ago
Updated 17 October 2023, 12 months 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: 402ms; Memory: 6MB
๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Priya_Degwekar

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024