protected function validateName($name)
    {
        if (preg_match("/[=,;\t\r\n\013\014]/", $name)) {
            throw new InvalidArgumentException(
                sprintf('The cookie name `%s` contains invalid characters.', $name)
            );
        }

        if (empty($name)) {
            throw new InvalidArgumentException('The cookie name cannot be empty.');
        }
    }
protected function validateName($name)
    {
        if (preg_match("/[=,;\t\r\n\013\014]/", $name)) {
            throw new InvalidArgumentException(
                sprintf('The cookie name `%s` contains invalid characters.', $name)
            );
        }

        if (empty($name)) {
            throw new InvalidArgumentException('The cookie name cannot be empty.');
        }
    }
protected function validateName ( $ name ) { if ( preg_match ( "/[=,;\t\r\n\013\014]/" , $ name ) ) { throw new InvalidArgumentException ( sprintf ( 'The cookie name `%s` contains invalid characters.' , $ name ) ) ; } if ( empty ( $ name ) ) { throw new InvalidArgumentException ( 'The cookie name cannot be empty.' ) ; } }
Validates the cookie name

@param string $name Name of the cookie
@return void
@throws \InvalidArgumentException
@link https://tools.ietf.org/html/rfc2616#section-2.2 Rules for naming cookies.
Validates the cookie name