Apply coding style guide

http://owncloud.org/dev/coding-style-guide/
This commit is contained in:
Thomas Müller 2012-10-24 12:12:16 +03:00
parent 070fe02448
commit 4c234bd666
1 changed files with 203 additions and 203 deletions

View File

@ -25,16 +25,16 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
if (isset($_GET['dir'])) { if (isset($_GET['dir'])) {
$type = 'folder'; $type = 'folder';
$path = $_GET['dir']; $path = $_GET['dir'];
if(strlen($path)>1 and substr($path,-1,1)==='/') { if(strlen($path)>1 and substr($path, -1, 1)==='/') {
$path=substr($path,0,-1); $path=substr($path, 0, -1);
} }
$baseDir = $path; $baseDir = $path;
$dir = $baseDir; $dir = $baseDir;
} else { } else {
$type = 'file'; $type = 'file';
$path = $_GET['dir']; $path = $_GET['dir'];
if(strlen($path)>1 and substr($path,-1,1)==='/') { if(strlen($path)>1 and substr($path, -1, 1)==='/') {
$path=substr($path,0,-1); $path=substr($path, 0, -1);
} }
} }
$uidOwner = substr($path, 1, strpos($path, '/', 1) - 1); $uidOwner = substr($path, 1, strpos($path, '/', 1) - 1);