summaryrefslogtreecommitdiffstats
path: root/lib/files/storage/local.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-02-14 12:54:36 -0800
committerBart Visscher <bartv@thisnet.nl>2013-02-14 12:54:36 -0800
commit9058d398a7b9aac58ab4aa7379e13ca83c72281d (patch)
tree7aaa55510ab15435efc2f36cf5628f5763f3ce02 /lib/files/storage/local.php
parent4320f23c87ab6b43a31b8dcb0c6e44127438f123 (diff)
parentffae6f4b847e96d691053300c355ab81edc6c1c8 (diff)
downloadnextcloud-server-9058d398a7b9aac58ab4aa7379e13ca83c72281d.tar.gz
nextcloud-server-9058d398a7b9aac58ab4aa7379e13ca83c72281d.zip
Merge pull request #1662 from owncloud/style-cleanup
Style cleanup
Diffstat (limited to 'lib/files/storage/local.php')
-rw-r--r--lib/files/storage/local.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/files/storage/local.php b/lib/files/storage/local.php
index aaa3c0fab49..da6597c8057 100644
--- a/lib/files/storage/local.php
+++ b/lib/files/storage/local.php
@@ -40,7 +40,7 @@ class Local extends \OC\Files\Storage\Common{
return opendir($this->datadir.$path);
}
public function is_dir($path) {
- if(substr($path,-1)=='/') {
+ if(substr($path, -1)=='/') {
$path=substr($path, 0, -1);
}
return is_dir($this->datadir.$path);
@@ -117,11 +117,11 @@ class Local extends \OC\Files\Storage\Common{
}
public function rename($path1, $path2) {
if (!$this->isUpdatable($path1)) {
- \OC_Log::write('core','unable to rename, file is not writable : '.$path1,\OC_Log::ERROR);
+ \OC_Log::write('core', 'unable to rename, file is not writable : '.$path1, \OC_Log::ERROR);
return false;
}
if(! $this->file_exists($path1)) {
- \OC_Log::write('core','unable to rename, file does not exists : '.$path1,\OC_Log::ERROR);
+ \OC_Log::write('core', 'unable to rename, file does not exists : '.$path1, \OC_Log::ERROR);
return false;
}
@@ -205,7 +205,9 @@ class Local extends \OC\Files\Storage\Common{
return (float)exec('stat -c %s ' . escapeshellarg($fullPath));
}
} else {
- \OC_Log::write('core', 'Unable to determine file size of "'.$fullPath.'". Unknown OS: '.$name, \OC_Log::ERROR);
+ \OC_Log::write('core',
+ 'Unable to determine file size of "'.$fullPath.'". Unknown OS: '.$name,
+ \OC_Log::ERROR);
}
return 0;