]> source.dussan.org Git - nextcloud-server.git/commitdiff
Short php syntax 22062/head
authorJoas Schilling <coding@schilljs.com>
Mon, 3 Aug 2020 09:25:21 +0000 (11:25 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 3 Aug 2020 09:25:21 +0000 (11:25 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/dav/lib/CardDAV/CardDavBackend.php

index f339dc793980d69a9de0934d2f0d0e60bf2a97ea..43cf690d739b5cf1a656e1fad5715e925018389f 100644 (file)
@@ -165,7 +165,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
                                '{DAV:}displayname' => $row['displayname'],
                                '{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
                                '{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']]);
@@ -221,7 +221,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
                                '{DAV:}displayname' => $displayName,
                                '{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
                                '{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'],
                                $readOnlyPropertyName => $readOnly,
                        ];
@@ -251,7 +251,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
                                '{DAV:}displayname' => $row['displayname'],
                                '{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
                                '{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']]);
@@ -298,7 +298,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
                        '{DAV:}displayname' => $row['displayname'],
                        '{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
                        '{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);
@@ -332,7 +332,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
                        '{DAV:}displayname' => $row['displayname'],
                        '{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
                        '{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);