diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-05-31 22:51:16 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-06-01 00:39:59 +0200 |
commit | e430f442b50b43d085dac2f68b1c5ff3dd1236f7 (patch) | |
tree | ce0d219be513c1fb6a2a0b33c07fa4b2affe5c07 /lib/user.php | |
parent | b840de4e0125cec430dd1d9b49371fe5d4f6c1e7 (diff) | |
download | nextcloud-server-e430f442b50b43d085dac2f68b1c5ff3dd1236f7.tar.gz nextcloud-server-e430f442b50b43d085dac2f68b1c5ff3dd1236f7.zip |
use single quotes
Diffstat (limited to 'lib/user.php')
-rw-r--r-- | lib/user.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/user.php b/lib/user.php index 7e5b70c5330..bdd944ee183 100644 --- a/lib/user.php +++ b/lib/user.php @@ -44,28 +44,28 @@ class OC_User { $manager = new \OC\User\Manager(); self::$userSession = new \OC\User\Session($manager, \OC::$session); self::$userSession->listen('\OC\User', 'preCreateUser', function ($uid, $password) { - \OC_Hook::emit('OC_User', 'pre_createUser', array("run" => true, "uid" => $uid, "password" => $password)); + \OC_Hook::emit('OC_User', 'pre_createUser', array('run' => true, 'uid' => $uid, 'password' => $password)); }); self::$userSession->listen('\OC\User', 'postCreateUser', function ($user, $password) { - \OC_Hook::emit('OC_User', 'post_createUser', array("uid" => $user->getUID(), "password" => $password)); + \OC_Hook::emit('OC_User', 'post_createUser', array('uid' => $user->getUID(), 'password' => $password)); }); self::$userSession->listen('\OC\User', 'preDelete', function ($user) { - \OC_Hook::emit('OC_User', 'pre_deleteUser', array("run" => true, "uid" => $user->getUID())); + \OC_Hook::emit('OC_User', 'pre_deleteUser', array('run' => true, 'uid' => $user->getUID())); }); self::$userSession->listen('\OC\User', 'postDelete', function ($user) { - \OC_Hook::emit('OC_User', 'post_deleteUser', array("uid" => $user->getUID())); + \OC_Hook::emit('OC_User', 'post_deleteUser', array('uid' => $user->getUID())); }); self::$userSession->listen('\OC\User', 'preSetPassword', function ($user, $password, $recoveryPassword) { - OC_Hook::emit("OC_User", "pre_setPassword", array("run" => &$run, "uid" => $user->getUID(), "password" => $password, "recoveryPassword" => $recoveryPassword)); + OC_Hook::emit('OC_User', 'pre_setPassword', array('run' => &$run, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword)); }); self::$userSession->listen('\OC\User', 'postSetPassword', function ($user, $password, $recoveryPassword) { - OC_Hook::emit("OC_User", "post_setPassword", array("run" => &$run, "uid" => $user->getUID(), "password" => $password, "recoveryPassword" => $recoveryPassword)); + OC_Hook::emit('OC_User', 'post_setPassword', array('run' => &$run, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword)); }); self::$userSession->listen('\OC\User', 'preLogin', function ($uid, $password) { - \OC_Hook::emit('OC_User', 'pre_login', array("run" => true, "uid" => $uid, "password" => $password)); + \OC_Hook::emit('OC_User', 'pre_login', array('run' => true, 'uid' => $uid, 'password' => $password)); }); self::$userSession->listen('\OC\User', 'postLogin', function ($user, $password) { - \OC_Hook::emit('OC_User', 'post_login', array("run" => true, "uid" => $user->getUID(), "password" => $password)); + \OC_Hook::emit('OC_User', 'post_login', array('run' => true, 'uid' => $user->getUID(), 'password' => $password)); }); self::$userSession->listen('\OC\User', 'logout', function () { \OC_Hook::emit('OC_User', 'logout', array()); @@ -227,7 +227,7 @@ class OC_User { OC_Preferences::deleteUser($uid); // Delete user files in /data/ - OC_Helper::rmdirr(OC_Config::getValue("datadirectory", OC::$SERVERROOT . "/data") . '/' . $uid . '/'); + OC_Helper::rmdirr(OC_Config::getValue('datadirectory', OC::$SERVERROOT . '/data') . '/' . $uid . '/'); } } @@ -441,7 +441,7 @@ class OC_User { if ($user) { return $user->getHome(); } else { - return OC_Config::getValue("datadirectory", OC::$SERVERROOT . "/data") . '/' . $uid; + return OC_Config::getValue('datadirectory', OC::$SERVERROOT . '/data') . '/' . $uid; } } |