$ phpcs --standard=Drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml first_time_login/
FILE: C:\xampp\htdocs\contribution\web\modules\contrib\first_time_login\src\Form\FirstTimeLoginSettings.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
99 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------
Time: 191ms; Memory: 6MB
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | t_calls_should_be_avoided-3291462-1.patch | 1.03 KB | rakhi soni |
Comments
Comment #2
rakhi soni commentedI have created a patch to fix the Drupal Practice Standard Issues,, Please review.
Comment #3
sourabhjainI have reviewed the changes and its looks fine to me.
Moving to RTBC.
Comment #4
neerajsinghThank you, this issue got fixed in #3287026: Coding Standard issues in first_time_login module
Comment #6
neerajsingh