* Generate a form key based on form name, the current user session
* and a private key. Modelled after drupal's form API
*
- * @param $name
- * @param bool $addSequence
- *
- * @internal param string $value name of the form
- * @paeam boolean $addSequence should we add a unique sequence number to the end of the key
+ * @param string $name
+ * @param bool $addSequence should we add a unique sequence number to the end of the key
*
* @return string valid formID
* @static
- * @acess public
+ * @access public
*/
static function get($name, $addSequence = FALSE) {
$privateKey = self::privateKey();
/**
* Validate a form key based on the form name
*
- * @param $key
+ * @param string $key
* @param string $name
- *
* @param bool $addSequence
*
- * @internal param string $formKey
* @return string $formKey if valid, else null
* @static
- * @acess public
+ * @access public
*/
static function validate($key, $name, $addSequence = FALSE) {
if (!is_string($key)) {