Improvements to code formatting & indentation

This commit is contained in:
Sam Tuke 2013-05-09 18:16:59 +02:00
parent 3003dd46d1
commit 92e28839ff
1 changed files with 122 additions and 117 deletions

View File

@ -305,7 +305,6 @@ class Util {
* @brief Find all files and their encryption status within a directory
* @param string $directory The path of the parent directory to search
* @return mixed false if 0 found, array on success. Keys: name, path
* @note $directory needs to be a path relative to OC data dir. e.g.
* /admin/files NOT /backup OR /home/www/oc/data/admin/files
*/
@ -469,6 +468,7 @@ class Util {
*/
public function getFileSize( $path ) {
$result = 0;
// Disable encryption proxy to prevent recursive calls
@ -513,14 +513,15 @@ class Util {
return $result;
}
/**
* @brief fix the file size of the encrypted file
*
* @param $path absolute path
* @return true / false if file is encrypted
*/
public function fixFileSize( $path ) {
$result = false;
// Disable encryption proxy to prevent recursive calls
@ -528,7 +529,9 @@ class Util {
\OC_FileProxy::$enabled = false;
$realSize = $this->getFileSize( $path );
if ( $realSize > 0 ) {
$cached = $this->view->getFileInfo( $path );
$cached['encrypted'] = 1;
@ -539,6 +542,7 @@ class Util {
$this->view->putFileInfo( $path, $cached );
$result = true;
}
\OC_FileProxy::$enabled = $proxyStatus;
@ -1214,6 +1218,7 @@ class Util {
}
return $fileOwner;
}
}