diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-11-02 14:59:36 -0700 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-11-02 14:59:36 -0700 |
commit | fd584f446dabb1d3727a932cd5f4dbaafe63f0b8 (patch) | |
tree | 17efc1c42c3e844b69c9c19f6eba1b4cbd16f5e0 /lib/connector/sabre/locks.php | |
parent | 2dbf2c69deaf2bb8bdf02d4539756f8f6d2b9738 (diff) | |
parent | afadf93d317e27fd848f1e70d5849169f862aed9 (diff) | |
download | nextcloud-server-fd584f446dabb1d3727a932cd5f4dbaafe63f0b8.tar.gz nextcloud-server-fd584f446dabb1d3727a932cd5f4dbaafe63f0b8.zip |
Merge pull request #220 from fmms/checkstyle02
Checkstyle: many fixes
Diffstat (limited to 'lib/connector/sabre/locks.php')
-rw-r--r-- | lib/connector/sabre/locks.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/connector/sabre/locks.php b/lib/connector/sabre/locks.php index 8ebe324602c..55a8d5eaa6d 100644 --- a/lib/connector/sabre/locks.php +++ b/lib/connector/sabre/locks.php @@ -45,10 +45,10 @@ class OC_Connector_Sabre_Locks extends Sabre_DAV_Locks_Backend_Abstract { // but otherwise reading locks from SQLite Databases will return // nothing $query = 'SELECT * FROM `*PREFIX*locks` WHERE `userid` = ? AND (`created` + `timeout`) > '.time().' AND (( `uri` = ?)'; - $params = array(OC_User::getUser(),$uri); + $params = array(OC_User::getUser(), $uri); // We need to check locks for every part in the uri. - $uriParts = explode('/',$uri); + $uriParts = explode('/', $uri); // We already covered the last part of the uri array_pop($uriParts); @@ -137,7 +137,7 @@ class OC_Connector_Sabre_Locks extends Sabre_DAV_Locks_Backend_Abstract { public function unlock($uri,Sabre_DAV_Locks_LockInfo $lockInfo) { $query = OC_DB::prepare( 'DELETE FROM `*PREFIX*locks` WHERE `userid` = ? AND `uri` = ? AND `token` = ?' ); - $result = $query->execute( array(OC_User::getUser(),$uri,$lockInfo->token)); + $result = $query->execute( array(OC_User::getUser(), $uri, $lockInfo->token)); return $result->numRows() === 1; |