]> source.dussan.org Git - nextcloud-server.git/commitdiff
Minor typo, coding style fixes for OC_Util::getInstanceId
authorMiquel Rodríguez Telep / Michael Rodríguez-Torrent <miquel@designunbound.co.uk>
Tue, 26 Mar 2013 12:46:13 +0000 (12:46 +0000)
committerMiquel Rodríguez Telep / Michael Rodríguez-Torrent <miquel@designunbound.co.uk>
Tue, 26 Mar 2013 21:48:49 +0000 (21:48 +0000)
lib/util.php

index 7e8fc9b6bb7c728fab9082b423661ba73bb3f4e9..e8d4e56ef178ac526f07024d6f04f3dd12bbf77f 100755 (executable)
@@ -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.