src/Everest/Http/Cookie.php
private static function validateName(string $name) : string
  {
    if (empty($name) || preg_match("/[=,; \t\r\n\013\014]/", $name)) {
      throw new \InvalidArgumentException(sprintf('Invalid name \'%s\'.', $name));
    }

    return $name;
  }
private static function validateName(string $name) : string
  {
    if (empty($name) || preg_match("/[=,; \t\r\n\013\014]/", $name)) {
      throw new \InvalidArgumentException(sprintf('Invalid name \'%s\'.', $name));
    }

    return $name;
  }
private static function validateName ( string $ name ) : string { if ( empty ( $ name ) || preg_match ( "/[=,; \t\r\n\013\014]/" , $ name ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid name \'%s\'.' , $ name ) ) ; } return $ name ; }
Validates the name and returns it

@param  string $name The name to validate
@return string
Validates the name and returns it