diff options
author | Felix Moeller <mail@felixmoeller.de> | 2012-10-23 22:53:54 +0200 |
---|---|---|
committer | Felix Moeller <mail@felixmoeller.de> | 2012-10-23 22:53:54 +0200 |
commit | e73b817a38a824b3119136ea110eda4be15b99d5 (patch) | |
tree | 2679aaf755b1488bf50cb073dbd990fe2761679b /lib/helper.php | |
parent | 36d0d7590134f5587ab09c67927c3187e8b5c790 (diff) | |
download | nextcloud-server-e73b817a38a824b3119136ea110eda4be15b99d5.tar.gz nextcloud-server-e73b817a38a824b3119136ea110eda4be15b99d5.zip |
Checkstyle: NoSpaceAfterComma
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/helper.php b/lib/helper.php index b79955aa9bf..b7166e9fb41 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -189,7 +189,7 @@ class OC_Helper { return OC::$WEBROOT."/core/img/filetypes/$mimetype.png"; } //try only the first part of the filetype - $mimetype=substr($mimetype,0,strpos($mimetype,'-')); + $mimetype=substr($mimetype,0, strpos($mimetype,'-')); if( file_exists( OC::$SERVERROOT."/core/img/filetypes/$mimetype.png" )) { return OC::$WEBROOT."/core/img/filetypes/$mimetype.png"; } @@ -363,7 +363,7 @@ class OC_Helper { if($mimeType=='application/octet-stream' and function_exists('finfo_open') and function_exists('finfo_file') and $finfo=finfo_open(FILEINFO_MIME)) { $info = @strtolower(finfo_file($finfo,$path)); if($info) { - $mimeType=substr($info,0,strpos($info,';')); + $mimeType=substr($info,0, strpos($info,';')); } finfo_close($finfo); } @@ -380,8 +380,8 @@ class OC_Helper { pclose($fp); //trim the character set from the end of the response - $mimeType=substr($reply,0,strrpos($reply,' ')); - $mimeType=substr($mimeType,0,strrpos($mimeType,"\n")); + $mimeType=substr($reply,0, strrpos($reply,' ')); + $mimeType=substr($mimeType,0, strrpos($mimeType,"\n")); //trim ; if (strpos($mimeType, ';') !== false) { @@ -495,7 +495,7 @@ class OC_Helper { } $count=0; while(!feof($source)) { - $count+=fwrite($target,fread($source,8192)); + $count+=fwrite($target, fread($source,8192)); } return $count; } |