Problem/Motivation

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

Steps to reproduce

Execute the command:- phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig auto_node_translate/

Proposed resolution

Fix all the issues

and verify it using
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig auto_node_translate/

It should not give any errors.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

urvashi_vora created an issue. See original summary.

urvashi_vora’s picture

Assigned: urvashi_vora » Unassigned
Status: Needs work » Needs review
hardikpandya’s picture

Status: Needs review » Reviewed & tested by the community

There are no more t() call issues reported by phpcs. Marking as RTBC!

jmauricio’s picture

Assigned: Unassigned » jmauricio
Status: Reviewed & tested by the community » Fixed

Changes merged into 1.0.x

jmauricio’s picture

Status: Fixed » Closed (fixed)
jmauricio’s picture

Issue tags: -
jmauricio’s picture

Assigned: jmauricio » Unassigned