/**
* Generate a token used for RSS.
*
- * @param integer $length Length of the token
+ * @param int $length Length of the token
*
* @return string
*/
$token = substr(base64_encode(random_bytes($length)), 0, $length);
// remove character which can broken the url
- return str_replace(array('+', '/'), '', $token);
+ return str_replace(['+', '/'], '', $token);
}
/**