Skip to content

Commit

Permalink
Use QAM internal functions table to improve external code search.
Browse files Browse the repository at this point in the history
  • Loading branch information
fgm committed Aug 21, 2020
1 parent 0bbc9a8 commit 6fc327a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Plugin/QaCheck/System/ExternalCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ protected function checkExternal(): Result {
$external = [];
$funcs = array_flip(get_defined_functions()['user']);
foreach ($funcs as $func => $_) {
if (isset($this->qam->internalFunctions[$func])) {
continue;
}
try {
$rf = new ReflectionFunction($func);
}
Expand Down

0 comments on commit 6fc327a

Please sign in to comment.