Use dependency injection

Created on 3 March 2023, over 1 year ago
Updated 27 July 2023, 11 months ago

Problem/Motivation

There are issues reported by phpcs for this module.

FILE: src/FormAlter.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------
 231 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
 248 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------

Time: 305ms; Memory: 12MB

Steps to reproduce

Run phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,yml .

Proposed resolution

Provide patch file that addresses these issues

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States davidburns Philadelphia

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.69.0 2024