Page MenuHomeSealhub

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
Fri, Jul 4, 08:27 (5 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
789842
Default Alt Text
ArcanistTestXHPASTLintSwitchHook.php (340 B)

Event Timeline