@@ -215,8 +215,7 @@ discard block |
||
| 215 | 215 | if ($item->isDir()) |
| 216 | 216 | { |
| 217 | 217 | FileHelper::copyTree(str_replace('\\', '/', $itemPath), $target . '/' . $baseName); |
| 218 | - } |
|
| 219 | - else if($item->isFile()) |
|
| 218 | + } else if($item->isFile()) |
|
| 220 | 219 | { |
| 221 | 220 | self::copyFile($itemPath, $target . '/' . $baseName); |
| 222 | 221 | } |
@@ -260,8 +259,7 @@ discard block |
||
| 260 | 259 | if(!file_exists($targetFolder)) |
| 261 | 260 | { |
| 262 | 261 | self::createFolder($targetFolder); |
| 263 | - } |
|
| 264 | - else if(!is_writable($targetFolder)) |
|
| 262 | + } else if(!is_writable($targetFolder)) |
|
| 265 | 263 | { |
| 266 | 264 | throw new FileHelper_Exception( |
| 267 | 265 | sprintf('Target folder [%s] is not writable.', basename($targetFolder)), |
@@ -760,8 +758,7 @@ discard block |
||
| 760 | 758 | if(isset($options['relative-path']) && $options['relative-path'] === true) |
| 761 | 759 | { |
| 762 | 760 | $finder->setPathmodeRelative(); |
| 763 | - } |
|
| 764 | - else if(isset($options['absolute-path']) && $options['absolute-path'] === true) |
|
| 761 | + } else if(isset($options['absolute-path']) && $options['absolute-path'] === true) |
|
| 765 | 762 | { |
| 766 | 763 | $finder->setPathmodeAbsolute(); |
| 767 | 764 | } |