CS fixes
This commit is contained in:
parent
8a7b4e2497
commit
687ab45110
5 changed files with 6 additions and 7 deletions
|
@ -558,8 +558,7 @@ class carddav_contacts extends rcube_addressbook
|
|||
}
|
||||
$this->readonly = true; // set source to read-only
|
||||
}
|
||||
*/
|
||||
elseif ($object = $this->storage->get_object($uid)) {
|
||||
*/ elseif ($object = $this->storage->get_object($uid)) {
|
||||
$rec = $this->_to_rcube_contact($object);
|
||||
}
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@ class kolab_addressbook extends rcube_plugin
|
|||
$sources = (array) $this->rc->get_address_sources();
|
||||
|
||||
// list all non-kolab sources first (also exclude hidden sources), special folders will go last
|
||||
foreach ($sources as $j => $source) {
|
||||
foreach ($sources as $j => $source) {
|
||||
$id = strval(strlen($source['id']) ? $source['id'] : $j);
|
||||
if (!empty($source['kolab']) || !empty($source['hidden'])) {
|
||||
continue;
|
||||
|
|
|
@ -141,7 +141,7 @@ class kolab_folders extends rcube_plugin
|
|||
if (!empty($skip_namespace)) {
|
||||
$storage = $this->rc->get_storage();
|
||||
foreach ((array)$skip_namespace as $ns) {
|
||||
foreach((array)$storage->get_namespace($ns) as $root) {
|
||||
foreach ((array)$storage->get_namespace($ns) as $root) {
|
||||
$skip_roots[] = rtrim($root[0], $root[1]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@ class kolab_format_contact extends kolab_format
|
|||
|
||||
// addresses
|
||||
$adrs = new vectoraddress();
|
||||
foreach ((array)($object['address'] ?? [])as $address) {
|
||||
foreach ((array)($object['address'] ?? []) as $address) {
|
||||
$adr = new Address();
|
||||
$type = $this->addresstypes[$address['type']];
|
||||
if (isset($type)) {
|
||||
|
|
|
@ -262,7 +262,7 @@ abstract class kolab_format_xcal extends kolab_format
|
|||
$value = '';
|
||||
$time = '';
|
||||
|
||||
if ($w = $offset->weeks()) {
|
||||
if ($w = $offset->weeks()) {
|
||||
$value .= $w . 'W';
|
||||
} elseif ($d = $offset->days()) {
|
||||
$value .= $d . 'D';
|
||||
|
@ -292,7 +292,7 @@ abstract class kolab_format_xcal extends kolab_format
|
|||
if (($duration = $alarm->duration()) && $duration->isValid()) {
|
||||
$value = $time = '';
|
||||
|
||||
if ($w = $duration->weeks()) {
|
||||
if ($w = $duration->weeks()) {
|
||||
$value .= $w . 'W';
|
||||
} elseif ($d = $duration->days()) {
|
||||
$value .= $d . 'D';
|
||||
|
|
Loading…
Add table
Reference in a new issue