summaryrefslogtreecommitdiffstats
path: root/lib/setup
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-08-15 08:49:19 +0200
committerkondou <kondou@ts.unde.re>2013-08-15 15:57:32 +0200
commit9c5416fe4a12acf5631b8822feb942143bf2408f (patch)
treea9d6297ae8400cdf73b1a48a22391c9fae3cced5 /lib/setup
parentb9f3bb24261961ead93fb76c1295066cfa666299 (diff)
downloadnextcloud-server-9c5416fe4a12acf5631b8822feb942143bf2408f.tar.gz
nextcloud-server-9c5416fe4a12acf5631b8822feb942143bf2408f.zip
Clean up \OC\Util
- Use camelCase - Add some phpdoc - Fix some indents - Use some more spacing
Diffstat (limited to 'lib/setup')
-rw-r--r--lib/setup/mysql.php2
-rw-r--r--lib/setup/oci.php2
-rw-r--r--lib/setup/postgresql.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/setup/mysql.php b/lib/setup/mysql.php
index 0cf04fde5a1..d97b6d2602f 100644
--- a/lib/setup/mysql.php
+++ b/lib/setup/mysql.php
@@ -23,7 +23,7 @@ class MySQL extends AbstractDatabase {
$this->dbuser=substr('oc_'.$username, 0, 16);
if($this->dbuser!=$oldUser) {
//hash the password so we don't need to store the admin config in the config file
- $this->dbpassword=\OC_Util::generate_random_bytes(30);
+ $this->dbpassword=\OC_Util::generateRandomBytes(30);
$this->createDBUser($connection);
diff --git a/lib/setup/oci.php b/lib/setup/oci.php
index 86b53de45a4..326d7a00531 100644
--- a/lib/setup/oci.php
+++ b/lib/setup/oci.php
@@ -65,7 +65,7 @@ class OCI extends AbstractDatabase {
//add prefix to the oracle user name to prevent collisions
$this->dbuser='oc_'.$username;
//create a new password so we don't need to store the admin config in the config file
- $this->dbpassword=\OC_Util::generate_random_bytes(30);
+ $this->dbpassword=\OC_Util::generateRandomBytes(30);
//oracle passwords are treated as identifiers:
// must start with aphanumeric char
diff --git a/lib/setup/postgresql.php b/lib/setup/postgresql.php
index 49fcbf0326e..89d328ada19 100644
--- a/lib/setup/postgresql.php
+++ b/lib/setup/postgresql.php
@@ -33,7 +33,7 @@ class PostgreSQL extends AbstractDatabase {
//add prefix to the postgresql user name to prevent collisions
$this->dbuser='oc_'.$username;
//create a new password so we don't need to store the admin config in the config file
- $this->dbpassword=\OC_Util::generate_random_bytes(30);
+ $this->dbpassword=\OC_Util::generateRandomBytes(30);
$this->createDBUser($connection);