summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/ftp.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-10-24 10:16:32 -0700
committerLukas Reschke <lukas@statuscode.ch>2012-10-24 10:16:32 -0700
commit515e1b467e58337067ee3a4a8945f449d3c2ef3a (patch)
tree06ed218ada64bb696e9c6ce22baa79b827df8530 /apps/files_external/lib/ftp.php
parent7454186806d8ebc440f7604d1ff517433bdd9faa (diff)
parent561cbb2de69a31934c22fc28332b5a14b6fcfc68 (diff)
downloadnextcloud-server-515e1b467e58337067ee3a4a8945f449d3c2ef3a.tar.gz
nextcloud-server-515e1b467e58337067ee3a4a8945f449d3c2ef3a.zip
Merge pull request #81 from fmms/master
Codestyle add some needed spaces.
Diffstat (limited to 'apps/files_external/lib/ftp.php')
-rw-r--r--apps/files_external/lib/ftp.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_external/lib/ftp.php b/apps/files_external/lib/ftp.php
index 261141455cc..13d1387f287 100644
--- a/apps/files_external/lib/ftp.php
+++ b/apps/files_external/lib/ftp.php
@@ -53,7 +53,7 @@ class OC_FileStorage_FTP extends OC_FileStorage_StreamWrapper{
case 'ab':
//these are supported by the wrapper
$context = stream_context_create(array('ftp' => array('overwrite' => true)));
- return fopen($this->constructUrl($path),$mode,false,$context);
+ return fopen($this->constructUrl($path),$mode, false,$context);
case 'r+':
case 'w+':
case 'wb+':
@@ -64,7 +64,7 @@ class OC_FileStorage_FTP extends OC_FileStorage_StreamWrapper{
case 'c+':
//emulate these
if(strrpos($path,'.')!==false) {
- $ext=substr($path,strrpos($path,'.'));
+ $ext=substr($path, strrpos($path,'.'));
}else{
$ext='';
}
@@ -80,7 +80,7 @@ class OC_FileStorage_FTP extends OC_FileStorage_StreamWrapper{
public function writeBack($tmpFile) {
if(isset(self::$tempFiles[$tmpFile])) {
- $this->uploadFile($tmpFile,self::$tempFiles[$tmpFile]);
+ $this->uploadFile($tmpFile, self::$tempFiles[$tmpFile]);
unlink($tmpFile);
}
}