Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8891125
ArcanistTestXHPASTLintSwitchHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
340 B
Subscribers
None
ArcanistTestXHPASTLintSwitchHook.php
View Options
<?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
Details
Attached
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)
Attached To
rARC Arcanist
Event Timeline
Log In to Comment