Page MenuHomePhabricator

ArcanistTestXHPASTLintSwitchHook.php
No OneTemporary

ArcanistTestXHPASTLintSwitchHook.php

<?php
final class ArcanistTestXHPASTLintSwitchHook
extends ArcanistXHPASTLintSwitchHook {
public function checkSwitchToken(XHPASTToken $token) {
if ($token->getTypeName() == 'T_STRING') {
switch (strtolower($token->getValue())) {
case 'throw_exception':
return true;
}
}
return false;
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Jun 10, 2:46 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
3387962
Default Alt Text
ArcanistTestXHPASTLintSwitchHook.php (340 B)

Event Timeline