private function isEmptyLine(array $tokensInLine): bool
    {
        if (count($tokensInLine) > 1) {
            return false;
        }

        $firstToken = $tokensInLine[0];
        return $firstToken->getType() === TokenInterface::TYPE_WHITESPACE && $firstToken->getValue() === "\n";
    }
private function isEmptyLine(array $tokensInLine): bool
    {
        if (count($tokensInLine) > 1) {
            return false;
        }

        $firstToken = $tokensInLine[0];
        return $firstToken->getType() === TokenInterface::TYPE_WHITESPACE && $firstToken->getValue() === "\n";
    }
private function isEmptyLine ( array $ tokensInLine ) : bool { if ( count ( $ tokensInLine ) > 1 ) { return false ; } $ firstToken = $ tokensInLine [ 0 ] ; return $ firstToken -> getType ( ) === TokenInterface :: TYPE_WHITESPACE && $ firstToken -> getValue ( ) === "\n" ; }
Checks if a stream of tokens is an empty line.

@param TokenInterface[] $tokensInLine
@return bool
Checks if a stream of tokens is an empty line .