/** * Check If Feature Matches Specified Filter. * * @param FeatureNode $feature feature * @param string $filter filter string (optional) */ public function isFeatureMatchFilter(FeatureNode $feature, $filter = null) { return $this->isClosuresMatchFilter(function ($tag) use($feature) { return $feature->hasTag($tag); }, function ($tag) use($feature) { return !$feature->hasTag($tag); }, null !== $filter ? $filter : $this->filterString); }