@@ -211,8 +211,7 @@ discard block |
||
| 211 | 211 | |
| 212 | 212 | if ($filter['name'] == 'VEVENT') { |
| 213 | 213 | $types[] = 'IPM.Appointment'; |
| 214 | - } |
|
| 215 | - elseif ($filter['name'] == 'VTODO') { |
|
| 214 | + } elseif ($filter['name'] == 'VTODO') { |
|
| 216 | 215 | $types[] = 'IPM.Task'; |
| 217 | 216 | } |
| 218 | 217 | |
@@ -282,8 +281,7 @@ discard block |
||
| 282 | 281 | if (!$ics && mapi_last_hresult()) { |
| 283 | 282 | $this->logger->error("Error generating ical, error code: 0x%08X", mapi_last_hresult()); |
| 284 | 283 | $ics = null; |
| 285 | - } |
|
| 286 | - elseif (!$ics) { |
|
| 284 | + } elseif (!$ics) { |
|
| 287 | 285 | $this->logger->error("Error generating ical, unknown error"); |
| 288 | 286 | $ics = null; |
| 289 | 287 | } |
@@ -413,8 +411,7 @@ discard block |
||
| 413 | 411 | // the positions of the last piece of standard information |
| 414 | 412 | $cut1 = $lastStandard; |
| 415 | 413 | $cut2 = strripos($ics, 'END:STANDARD', $lastStandard) + 14; // strlen('END:STANDARD') |
| 416 | - } |
|
| 417 | - else { |
|
| 414 | + } else { |
|
| 418 | 415 | // the part of the ics with the last piece of standard/daytime information |
| 419 | 416 | $cutEnd = $lastStandard; |
| 420 | 417 | |
@@ -68,8 +68,7 @@ |
||
| 68 | 68 | } |
| 69 | 69 | if ($path === 'principals') { |
| 70 | 70 | $username = $this->gDavBackend->GetUser(); |
| 71 | - } |
|
| 72 | - else { |
|
| 71 | + } else { |
|
| 73 | 72 | $username = str_replace('principals/', '', $path); |
| 74 | 73 | } |
| 75 | 74 | file_put_contents('/tmp/grommunio-dav.log', 'before mapi_zarafa_getuser_by_name', FILE_APPEND); |