summaryrefslogtreecommitdiffstats
path: root/lib/archive.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-09-07 15:22:01 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2012-09-07 15:22:01 +0200
commit3829460ab8cbb6de65c53583a20fd04cbe7927dd (patch)
tree4dc24845a5eb31b17510a621e14c15b51f16bf7b /lib/archive.php
parent785aa751bb5f9a4bcdd677b96207550482e17d3c (diff)
downloadnextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.tar.gz
nextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.zip
adding space between) and {
Diffstat (limited to 'lib/archive.php')
-rw-r--r--lib/archive.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/archive.php b/lib/archive.php
index 5ac4edbfd1e..b4459c2b6ce 100644
--- a/lib/archive.php
+++ b/lib/archive.php
@@ -12,15 +12,15 @@ abstract class OC_Archive{
* @param string path
* @return OC_Archive
*/
- public static function open($path){
+ public static function open($path) {
$ext=substr($path,strrpos($path,'.'));
- switch($ext){
+ switch($ext) {
case '.zip':
return new OC_Archive_ZIP($path);
case '.gz':
case '.bz':
case '.bz2':
- if(strpos($path,'.tar.')){
+ if(strpos($path,'.tar.')) {
return new OC_Archive_TAR($path);
}
break;
@@ -118,14 +118,14 @@ abstract class OC_Archive{
* @param string source
* @return bool
*/
- function addRecursive($path,$source){
- if($dh=opendir($source)){
+ function addRecursive($path,$source) {
+ if($dh=opendir($source)) {
$this->addFolder($path);
- while($file=readdir($dh)){
- if($file=='.' or $file=='..'){
+ while($file=readdir($dh)) {
+ if($file=='.' or $file=='..') {
continue;
}
- if(is_dir($source.'/'.$file)){
+ if(is_dir($source.'/'.$file)) {
$this->addRecursive($path.'/'.$file,$source.'/'.$file);
}else{
$this->addFile($path.'/'.$file,$source.'/'.$file);