private function includeTest(string $ident) : bool
{
// If the test is not among the allowed ones, return false
$include = false;
foreach (explode(',', $this->includeFilter) as $pattern) {
if ($this->patternMatch($pattern, $ident)) {
// We cannot use "return true" because the test might be disabled later
$include = true;
}
}
if (!$include) {
return false;
}
// If the test is among the excluded ones, return false
foreach (explode(',', $this->excludeFilter) as $pattern) {
if ($this->patternMatch($pattern, $ident)) {
return false;
}
}
// Included otherwise
return true;
}