Short php syntax
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
f213617704
commit
5728f23b57
|
@ -163,7 +163,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
|
||||||
'{DAV:}displayname' => $row['displayname'],
|
'{DAV:}displayname' => $row['displayname'],
|
||||||
'{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
|
'{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
|
||||||
'{http://calendarserver.org/ns/}getctag' => $row['synctoken'],
|
'{http://calendarserver.org/ns/}getctag' => $row['synctoken'],
|
||||||
'{http://sabredav.org/ns}sync-token' => $row['synctoken'] ? $row['synctoken'] : '0',
|
'{http://sabredav.org/ns}sync-token' => $row['synctoken'] ?: '0',
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->addOwnerPrincipal($addressBooks[$row['id']]);
|
$this->addOwnerPrincipal($addressBooks[$row['id']]);
|
||||||
|
@ -219,7 +219,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
|
||||||
'{DAV:}displayname' => $displayName,
|
'{DAV:}displayname' => $displayName,
|
||||||
'{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
|
'{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
|
||||||
'{http://calendarserver.org/ns/}getctag' => $row['synctoken'],
|
'{http://calendarserver.org/ns/}getctag' => $row['synctoken'],
|
||||||
'{http://sabredav.org/ns}sync-token' => $row['synctoken'] ? $row['synctoken'] : '0',
|
'{http://sabredav.org/ns}sync-token' => $row['synctoken'] ?: '0',
|
||||||
'{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}owner-principal' => $row['principaluri'],
|
'{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}owner-principal' => $row['principaluri'],
|
||||||
$readOnlyPropertyName => $readOnly,
|
$readOnlyPropertyName => $readOnly,
|
||||||
];
|
];
|
||||||
|
@ -249,7 +249,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
|
||||||
'{DAV:}displayname' => $row['displayname'],
|
'{DAV:}displayname' => $row['displayname'],
|
||||||
'{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
|
'{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
|
||||||
'{http://calendarserver.org/ns/}getctag' => $row['synctoken'],
|
'{http://calendarserver.org/ns/}getctag' => $row['synctoken'],
|
||||||
'{http://sabredav.org/ns}sync-token' => $row['synctoken'] ? $row['synctoken'] : '0',
|
'{http://sabredav.org/ns}sync-token' => $row['synctoken'] ?: '0',
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->addOwnerPrincipal($addressBooks[$row['id']]);
|
$this->addOwnerPrincipal($addressBooks[$row['id']]);
|
||||||
|
@ -296,7 +296,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
|
||||||
'{DAV:}displayname' => $row['displayname'],
|
'{DAV:}displayname' => $row['displayname'],
|
||||||
'{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
|
'{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
|
||||||
'{http://calendarserver.org/ns/}getctag' => $row['synctoken'],
|
'{http://calendarserver.org/ns/}getctag' => $row['synctoken'],
|
||||||
'{http://sabredav.org/ns}sync-token' => $row['synctoken'] ? $row['synctoken'] : '0',
|
'{http://sabredav.org/ns}sync-token' => $row['synctoken'] ?: '0',
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->addOwnerPrincipal($addressBook);
|
$this->addOwnerPrincipal($addressBook);
|
||||||
|
@ -330,7 +330,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
|
||||||
'{DAV:}displayname' => $row['displayname'],
|
'{DAV:}displayname' => $row['displayname'],
|
||||||
'{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
|
'{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
|
||||||
'{http://calendarserver.org/ns/}getctag' => $row['synctoken'],
|
'{http://calendarserver.org/ns/}getctag' => $row['synctoken'],
|
||||||
'{http://sabredav.org/ns}sync-token' => $row['synctoken'] ? $row['synctoken'] : '0',
|
'{http://sabredav.org/ns}sync-token' => $row['synctoken'] ?: '0',
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->addOwnerPrincipal($addressBook);
|
$this->addOwnerPrincipal($addressBook);
|
||||||
|
|
Loading…
Reference in New Issue