@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * if nothing matched so far and the subtype is alphanumeric, uppercase it on the theory |
| 65 | 65 | * that it's probably a file extension |
| 66 | 66 | */ |
| 67 | - if ( $st_orig == $subtype |
|
| 67 | + if ($st_orig == $subtype |
|
| 68 | 68 | && preg_match('/^[a-z0-9]+$/', $subtype)) { |
| 69 | 69 | $subtype = strtoupper($subtype); |
| 70 | 70 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | return; |
| 85 | 85 | } |
| 86 | 86 | $parent = $this->get_parent(); |
| 87 | - if ( $parent |
|
| 87 | + if ($parent |
|
| 88 | 88 | && $parent->component == 'org.openpsa.documents') { |
| 89 | 89 | midcom::get()->auth->request_sudo('org.openpsa.documents'); |
| 90 | 90 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | $backup_attachment = $backup->create_attachment($original_attachment->name, $original_attachment->title, $original_attachment->mimetype); |
| 155 | 155 | |
| 156 | 156 | $original_handle = $original_attachment->open('r'); |
| 157 | - if ( !$backup_attachment |
|
| 157 | + if (!$backup_attachment |
|
| 158 | 158 | || !$original_handle) { |
| 159 | 159 | // Failed to copy the attachment, abort |
| 160 | 160 | return $backup->delete(); |