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

Created on 6 July 2025, about 2 months ago

Problem/Motivation

FILE: /var/www/html/drupal9.3.0/web/modules/contrib/shield/src/Form/ShieldSettingsForm.php
------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------
140 | WARNING | #options values usually have to run through t() for translation
------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal9.3.0/web/modules/contrib/shield/src/ShieldMiddleware.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
329 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India Rohit Rana

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

Comments & Activities

Production build 0.71.5 2024