Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3282053
ArcanistExtractUseXHPASTLinterRule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
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
Mon, Mar 24, 04:02 (1 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1120587
Default Alt Text
ArcanistExtractUseXHPASTLinterRule.php (496 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment