When PHP_CodeSniffer encounters on the the tokens specified in $tokens,
it invokes the process method of the sniff.
public addTokenListener ( PHP_CodeSniffer_Sniff $listener, array $tokens ) : void | ||
$listener | PHP_CodeSniffer_Sniff | The listener to add to the listener stack. |
$tokens | array | |
return | void |