Minor typo, coding style fixes for OC_Util::getInstanceId
This commit is contained in:
parent
d49e8ffb5e
commit
53fd122b89
24
lib/util.php
24
lib/util.php
|
@ -411,18 +411,18 @@ class OC_Util {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get an id unqiue for this instance
|
* get an id unique for this instance
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function getInstanceId() {
|
public static function getInstanceId() {
|
||||||
$id=OC_Config::getValue('instanceid', null);
|
$id = OC_Config::getValue('instanceid', null);
|
||||||
if(is_null($id)) {
|
if(is_null($id)) {
|
||||||
$id=uniqid();
|
$id = uniqid();
|
||||||
OC_Config::setValue('instanceid', $id);
|
OC_Config::setValue('instanceid', $id);
|
||||||
}
|
}
|
||||||
return $id;
|
return $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Static lifespan (in seconds) when a request token expires.
|
* @brief Static lifespan (in seconds) when a request token expires.
|
||||||
|
|
Loading…
Reference in New Issue