private static function isWhitespaceOfLength(TokenInterface $token, int $length): bool
    {
        return static::isWhitespace($token) && strlen(trim($token->getValue(), "\n")) == $length;
    }
private static function isWhitespaceOfLength(TokenInterface $token, int $length): bool
    {
        return static::isWhitespace($token) && strlen(trim($token->getValue(), "\n")) == $length;
    }
private static function isWhitespaceOfLength ( TokenInterface $ token , int $ length ) : bool { return static :: isWhitespace ( $ token ) && strlen ( trim ( $ token -> getValue ( ) , "\n" ) ) == $ length ; }
Tests whether a token is a whitespace of a given length

@param TokenInterface $token
@param int            $length
@return bool
Tests whether a token is a whitespace of a given length