Replace usages of \Drupal::time() with dependency injection

Created on 28 June 2023, over 1 year ago

Problem/Motivation

FILE: /var/www/html/my-drupal10-site/web/modules/contrib/reset_password_email_otp/src/EmailPassOTPContents.php
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 122 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead

Steps to reproduce

/vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml /var/www/html/my-drupal10-site/web/modules/contrib/reset_password_email_otp/

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Nishant

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

Comments & Activities

Production build 0.71.5 2024