/** * Check for silenced call to functions. * * @param String $text * The text of the token to test */ private function _checkSilenced($text) { if ($this->_isActive('checkSilencedError')) { $exceptions = $this->_config->getTestExceptions('checkSilencedError'); if (empty($exceptions) || !in_array($text, $exceptions)) { $previousToken = $this->tokenizer->peekPrvsToken(); if ($previousToken->id === T_AROBAS) { $this->_writeError('checkSilencedError', $this->_getMessage('SILENCED_ERROR')); } } } }