$ 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

Comments

Rakhi Soni created an issue. See original summary.

rakhi soni’s picture

Assigned: rakhi soni » Unassigned
Status: Active » Needs review
StatusFileSize
new1.03 KB

I have created a patch to fix the Drupal Practice Standard Issues,, Please review.

sourabhjain’s picture

Status: Needs review » Reviewed & tested by the community

I have reviewed the changes and its looks fine to me.
Moving to RTBC.

neerajsingh’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

neerajsingh’s picture