Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22398249
ArcanistExtractUseXHPASTLinterRule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
496 B
Referenced Files
None
Subscribers
None
ArcanistExtractUseXHPASTLinterRule.php
View Options
<?php
final
class
ArcanistExtractUseXHPASTLinterRule
extends
ArcanistXHPASTLinterRule
{
const
ID
=
4
;
public
function
getLintName
()
{
return
pht
(
'Use of %s'
,
'extract()'
);
}
public
function
process
(
XHPASTNode
$root
)
{
$calls
=
$this
->
getFunctionCalls
(
$root
,
array
(
'extract'
));
foreach
(
$calls
as
$call
)
{
$this
->
raiseLintAtNode
(
$call
,
pht
(
'Avoid %s. It is confusing and hinders static analysis.'
,
'extract()'
));
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 27, 17:21 (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1222541
Default Alt Text
ArcanistExtractUseXHPASTLinterRule.php (496 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline