Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/contacts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Dav
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2021-07-21 17:36:12 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2021-07-21 20:21:35 +0300
commit42a17065a386ed2d0c6691b9de06688f595fe03d (patch)
treeec7f341d55d9694cac8cd428bf2133dacf7011af /lib/Dav
parent292e3566a62b35e9dbb8df9c0e989956ab4931d8 (diff)
Migrate app bootstrapping
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/Dav')
-rw-r--r--lib/Dav/PatchPlugin.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Dav/PatchPlugin.php b/lib/Dav/PatchPlugin.php
index 16c25246..9f4f9d1f 100644
--- a/lib/Dav/PatchPlugin.php
+++ b/lib/Dav/PatchPlugin.php
@@ -87,9 +87,9 @@ class PatchPlugin extends ServerPlugin {
*
* @param PropPatch $propPatch
* @param INode $node
- * @return void
+ * @return bool
*/
- public function httpPatch(RequestInterface $request, ResponseInterface $response) {
+ public function httpPatch(RequestInterface $request, ResponseInterface $response): bool {
$path = $request->getPath();
$node = $this->server->tree->getNodeForPath($path);
@@ -127,7 +127,7 @@ class PatchPlugin extends ServerPlugin {
if (count($properties) > 1) {
throw new DAV\Exception\BadRequest('The specified property appear more than once');
}
-
+
// Init if not in the vcard
if (count($properties) === 0) {
$vCard->add($propertyName, $propertyData);
@@ -144,7 +144,7 @@ class PatchPlugin extends ServerPlugin {
$oldData = $properties[0]->getValue();
$properties[0]->setRawMimeDirValue($oldData.$propertyData);
}
-
+
// Validate & write
$vCard->validate();
$node->put($vCard->serialize());