Fix the issues reported by phpcs

Created on 13 May 2023, about 1 year ago
Updated 15 May 2023, about 1 year ago

Problem/Motivation

t() calls should be avoided in classes, use this->t() instead

Steps to reproduce

Run the command:

phpcs --standard=DrupalPractice
/web/modules/contrib/reset_password_email_otp/

Proposed resolution

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

FILE: \modules\contrib\reset_password_email_otp\src\EmailPassOTPContents.php

94 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------
FILE: \modules\contrib\reset_password_email_otp\src\Form\EmailOTPCheck.php

104 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Shanu Chouhan

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