summaryrefslogtreecommitdiffstats
path: root/lib/archive.php
diff options
context:
space:
mode:
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);