[Pkg-owncloud-commits] [owncloud] 214/394: code style changes

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:08 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 35a44a6b1c5e62b870c87a7f93492b9badc6b069
Author: scambra <sergio at entrecables.com>
Date:   Tue Oct 30 12:17:15 2012 +0100

    code style changes
---
 lib/connector/sabre/quotaplugin.php |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/lib/connector/sabre/quotaplugin.php b/lib/connector/sabre/quotaplugin.php
index 67177c2..5b8ef94 100644
--- a/lib/connector/sabre/quotaplugin.php
+++ b/lib/connector/sabre/quotaplugin.php
@@ -30,8 +30,8 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin {
 	public function initialize(Sabre_DAV_Server $server) {
 
 			$this->server = $server;
-			$this->server->subscribeEvent('beforeWriteContent',array($this,'checkQuota'),10);
-			$this->server->subscribeEvent('beforeCreateFile',array($this,'checkQuota'),10);
+			$this->server->subscribeEvent('beforeWriteContent', array($this, 'checkQuota'), 10);
+			$this->server->subscribeEvent('beforeCreateFile', array($this, 'checkQuota'), 10);
 
 	}
 
@@ -46,8 +46,10 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin {
 		$expected = $this->server->httpRequest->getHeader('X-Expected-Entity-Length');
 		$length = $expected ? $expected : $this->server->httpRequest->getHeader('Content-Length');
 		if ($length) {
-			if(substr($uri,0,1)!=='/') $uri='/'.$uri;
-			list($parentUri,$newName) = Sabre_DAV_URLUtil::splitPath($uri);
+			if (substr($uri, 0, 1)!=='/') {
+				$uri='/'.$uri;
+			}
+			list($parentUri, $newName) = Sabre_DAV_URLUtil::splitPath($uri);
 			if ($length > OC_Filesystem::free_space($parentUri)) {
 				throw new Sabre_DAV_Exception('Quota exceeded. File is too big.');
 			}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list