@@ -42,8 +42,7 @@ discard block |
||
| 42 | 42 | { |
| 43 | 43 | $info->delete(); |
| 44 | 44 | return true; |
| 45 | - } |
|
| 46 | - catch (FileHelper_Exception $e) |
|
| 45 | + } catch (FileHelper_Exception $e) |
|
| 47 | 46 | { |
| 48 | 47 | // Ignore the exception, since we're returning false instead. |
| 49 | 48 | } |
@@ -78,8 +77,7 @@ discard block |
||
| 78 | 77 | try |
| 79 | 78 | { |
| 80 | 79 | FileHelper::deleteFile($item); |
| 81 | - } |
|
| 82 | - catch (FileHelper_Exception $e) |
|
| 80 | + } catch (FileHelper_Exception $e) |
|
| 83 | 81 | { |
| 84 | 82 | return false; |
| 85 | 83 | } |
@@ -125,8 +123,7 @@ discard block |
||
| 125 | 123 | if ($item->isFolder()) |
| 126 | 124 | { |
| 127 | 125 | self::copy($item, $target . '/' . $item->getName()); |
| 128 | - } |
|
| 129 | - else if($item->isFile()) |
|
| 126 | + } else if($item->isFile()) |
|
| 130 | 127 | { |
| 131 | 128 | $item |
| 132 | 129 | ->requireIsFile() |