ApiGen\Herrera\Box\Compactor\PhpNette::isCommentWithoutAnnotations PHP Метод

isCommentWithoutAnnotations() приватный метод

private isCommentWithoutAnnotations ( array $token, array $annotationList ) : boolean
$token array
$annotationList array
Результат boolean
    private function isCommentWithoutAnnotations(array $token, array $annotationList)
    {
        if ($token[0] !== T_DOC_COMMENT) {
            return false;
        }
        foreach ($annotationList as $annotation) {
            if (strpos($token[1], $annotation) !== false) {
                return false;
            }
        }
        return true;
    }