diff options
author | Miquel Rodríguez Telep / Michael Rodríguez-Torrent <miquel@designunbound.co.uk> | 2013-03-26 12:46:13 +0000 |
---|---|---|
committer | Miquel Rodríguez Telep / Michael Rodríguez-Torrent <miquel@designunbound.co.uk> | 2013-03-26 21:48:49 +0000 |
commit | 53fd122b89ff14b056094fcbcbd294bb63687778 (patch) | |
tree | f9bf1708d70c14440fab16fa188e8421ee4d4724 /lib/util.php | |
parent | d49e8ffb5ed4be03f05b607d9b673e4543b94d21 (diff) | |
download | nextcloud-server-53fd122b89ff14b056094fcbcbd294bb63687778.tar.gz nextcloud-server-53fd122b89ff14b056094fcbcbd294bb63687778.zip |
Minor typo, coding style fixes for OC_Util::getInstanceId
Diffstat (limited to 'lib/util.php')
-rwxr-xr-x | lib/util.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/util.php b/lib/util.php index 7e8fc9b6bb7..e8d4e56ef17 100755 --- a/lib/util.php +++ b/lib/util.php @@ -411,18 +411,18 @@ class OC_Util { exit(); } - /** - * get an id unqiue for this instance - * @return string - */ - public static function getInstanceId() { - $id=OC_Config::getValue('instanceid', null); - if(is_null($id)) { - $id=uniqid(); - OC_Config::setValue('instanceid', $id); - } - return $id; - } + /** + * get an id unique for this instance + * @return string + */ + public static function getInstanceId() { + $id = OC_Config::getValue('instanceid', null); + if(is_null($id)) { + $id = uniqid(); + OC_Config::setValue('instanceid', $id); + } + return $id; + } /** * @brief Static lifespan (in seconds) when a request token expires. |