public function checkSwitchToken(XHPASTToken $token)
 {
     if ($token->getTypeName() == 'T_STRING') {
         switch (strtolower($token->getValue())) {
             case 'throw_exception':
                 return true;
         }
     }
     return false;
 }
示例#2
0
 protected function raiseLintAtToken(XHPASTToken $token, $code, $desc, $replace = null)
 {
     return $this->raiseLintAtOffset($token->getOffset(), $code, $desc, $token->getValue(), $replace);
 }