1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 16:22:42 +01:00

Move the getSuperGlobalNames method to ArcanistBaseXHPASTLinter

Summary: Move the `getSuperGlobalNames` method to `ArcanistBaseXHPASTLinter` so that it can be used within subclasses.

Test Plan: `arc unit`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: virendra20888, Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D12473
This commit is contained in:
Joshua Spence 2015-05-03 10:05:35 +10:00
parent 46ce8a5a35
commit eb5621c998
2 changed files with 14 additions and 14 deletions

View file

@ -195,4 +195,18 @@ abstract class ArcanistBaseXHPASTLinter extends ArcanistFutureLinter {
return idx($this->exceptions, $path); return idx($this->exceptions, $path);
} }
public function getSuperGlobalNames() {
return array(
'$GLOBALS',
'$_SERVER',
'$_GET',
'$_POST',
'$_FILES',
'$_COOKIE',
'$_SESSION',
'$_REQUEST',
'$_ENV',
);
}
} }

View file

@ -3753,18 +3753,4 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
return AASTNodeList::newFromTreeAndNodes($root->getTree(), $nodes); return AASTNodeList::newFromTreeAndNodes($root->getTree(), $nodes);
} }
public function getSuperGlobalNames() {
return array(
'$GLOBALS',
'$_SERVER',
'$_GET',
'$_POST',
'$_FILES',
'$_COOKIE',
'$_SESSION',
'$_REQUEST',
'$_ENV',
);
}
} }