Drupal database use dependency injection instead

Created on 21 July 2023, over 1 year ago
Updated 29 January 2024, 10 months ago

Problem/Motivation

Fix the following coding standards issues and upload the patch or create an MR with fixes.


FILE: /modules/contrib/profitroom/src/Plugin/Field/FieldFormatter/ProfitroomFormatter.php
---------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------
 36 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
---------------------------------------------------------------------------------------


FILE: /modules/contrib/profitroom/src/Plugin/Block/ProfitroomBlock.php
--------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------
 22 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------


FILE: /modules/contrib/profitroom/src/Form/ProfitroomSettingsForm.php
--------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------
 49 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------

📌 Task
Status

Closed: duplicate

Component

Documentation

Created by

🇮🇳India swatichouhan012

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