Minor typo, coding style fixes for OC_Util::getInstanceId

This commit is contained in:
Miquel Rodríguez Telep / Michael Rodríguez-Torrent 2013-03-26 12:46:13 +00:00
parent d49e8ffb5e
commit 53fd122b89

View file

@ -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.