src/Directive/BlockDirective.php
private function hasInnerDirective($name, $inSubDirective, DirectiveInterface $directive)
    {
        if (!$directive->isSimple()) {
            $inSubDirective = $inSubDirective || $directive->hasDirective($name);
        }

        return $inSubDirective;
    }
private function hasInnerDirective($name, $inSubDirective, DirectiveInterface $directive)
    {
        if (!$directive->isSimple()) {
            $inSubDirective = $inSubDirective || $directive->hasDirective($name);
        }

        return $inSubDirective;
    }
private function hasInnerDirective ( $ name , $ inSubDirective , DirectiveInterface $ directive ) { if ( ! $ directive -> isSimple ( ) ) { $ inSubDirective = $ inSubDirective || $ directive -> hasDirective ( $ name ) ; } return $ inSubDirective ; }
Looks into sub directives to confirm if the actual contains a specified directive.

@param string             $name           the directive for which to check existence
@param bool               $inSubDirective the actual state
@param DirectiveInterface $directive      the sub directive to look into

@return bool true if the sub-directive exists, false otherwise
Looks into sub directives to confirm if the actual contains a specified directive .