summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/streamwrapper.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-12-03 18:02:22 +0100
committerRobin Appelman <icewind@owncloud.com>2012-12-03 18:02:22 +0100
commitbe30b1a8de2c7858be3f1dfa792504478af70eb4 (patch)
treeeb3f69b006041c1a586479bb59dbf557df48eec0 /apps/files_external/lib/streamwrapper.php
parent18663100d9f68400fba1fc344874aacb62bb4659 (diff)
parent4cb760a92402ab3eb8550fb05b05eae800030680 (diff)
downloadnextcloud-server-be30b1a8de2c7858be3f1dfa792504478af70eb4.tar.gz
nextcloud-server-be30b1a8de2c7858be3f1dfa792504478af70eb4.zip
merge master into filesystem
Diffstat (limited to 'apps/files_external/lib/streamwrapper.php')
-rw-r--r--apps/files_external/lib/streamwrapper.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_external/lib/streamwrapper.php b/apps/files_external/lib/streamwrapper.php
index bc1c95c5e8f..7c3ddcf8a2c 100644
--- a/apps/files_external/lib/streamwrapper.php
+++ b/apps/files_external/lib/streamwrapper.php
@@ -33,10 +33,10 @@ abstract class StreamWrapper extends \OC\Files\Storage\Common{
public function rmdir($path) {
$this->init();
if($this->file_exists($path)) {
- $succes=rmdir($this->constructUrl($path));
+ $succes = rmdir($this->constructUrl($path));
clearstatcache();
return $succes;
- }else{
+ } else {
return false;
}
}
@@ -66,7 +66,7 @@ abstract class StreamWrapper extends \OC\Files\Storage\Common{
public function unlink($path) {
$this->init();
- $succes=unlink($this->constructUrl($path));
+ $succes = unlink($this->constructUrl($path));
clearstatcache();
return $succes;
}
@@ -83,10 +83,10 @@ abstract class StreamWrapper extends \OC\Files\Storage\Common{
public function touch($path,$mtime=null) {
$this->init();
if(is_null($mtime)) {
- $fh=$this->fopen($path,'a');
+ $fh = $this->fopen($path,'a');
fwrite($fh,'');
fclose($fh);
- }else{
+ } else {
return false;//not supported
}
}