diff options
Diffstat (limited to 'plugins/openid/lib/Auth/OpenID.php')
-rw-r--r-- | plugins/openid/lib/Auth/OpenID.php | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/plugins/openid/lib/Auth/OpenID.php b/plugins/openid/lib/Auth/OpenID.php index c9d97796..4d8fffa3 100644 --- a/plugins/openid/lib/Auth/OpenID.php +++ b/plugins/openid/lib/Auth/OpenID.php @@ -117,6 +117,8 @@ class Auth_OpenID { * false if not. * * @access private + * @param object|string $thing + * @return bool */ static function isFailure($thing) { @@ -141,6 +143,8 @@ class Auth_OpenID { * http://lists.openidenabled.com/pipermail/dev/2007-March/000395.html * * @access private + * @param string|null $query_str + * @return array */ static function getQuery($query_str=null) { @@ -203,6 +207,8 @@ class Auth_OpenID { * true if the operation succeeded; false if not. * * @access private + * @param string $dir_name + * @return bool */ static function ensureDir($dir_name) { @@ -225,6 +231,9 @@ class Auth_OpenID { * array containing the prefixed values. * * @access private + * @param array $values + * @param string $prefix + * @return array */ static function addPrefix($values, $prefix) { @@ -241,6 +250,10 @@ class Auth_OpenID { * or return $default if the key is absent. * * @access private + * @param array $arr + * @param string $key + * @param mixed $fallback + * @return mixed */ static function arrayGet($arr, $key, $fallback = null) { @@ -261,6 +274,9 @@ class Auth_OpenID { /** * Replacement for PHP's broken parse_str. + * + * @param string|null $query + * @return array|null */ static function parse_str($query) { @@ -435,7 +451,7 @@ class Auth_OpenID { if ($normalized === null) { return null; } - list($defragged, $frag) = Auth_OpenID::urldefrag($normalized); + list($defragged) = Auth_OpenID::urldefrag($normalized); return $defragged; } @@ -443,6 +459,8 @@ class Auth_OpenID { * Replacement (wrapper) for PHP's intval() because it's broken. * * @access private + * @param string|int $value + * @return bool|int */ static function intval($value) { @@ -470,6 +488,9 @@ class Auth_OpenID { /** * Get the bytes in a string independently of multibyte support * conditions. + * + * @param string $str + * @return array */ static function toBytes($str) { |