You are here

protected property FunctionTSniff::$includeMethodCalls in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/Drupal/Sniffs/Semantics/FunctionTSniff.php \Drupal\Sniffs\Semantics\FunctionTSniff::includeMethodCalls
  2. 8.3.x coder_sniffer/Drupal/Sniffs/Semantics/FunctionTSniff.php \Drupal\Sniffs\Semantics\FunctionTSniff::includeMethodCalls

We also want to catch $this->t() calls in Drupal 8.

Type: bool

Overrides FunctionCall::$includeMethodCalls

File

coder_sniffer/Drupal/Sniffs/Semantics/FunctionTSniff.php, line 32

Class

FunctionTSniff
Check the usage of the t() function to not escape translateable strings with back slashes. Also checks that the first argument does not use string concatenation.

Namespace

Drupal\Sniffs\Semantics

Code

protected $includeMethodCalls = true;