summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-13 21:55:24 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-02-13 21:55:24 +0100
commite2974f1133693c022585d3758df142e0f385cb3e (patch)
treef8d1110d68580b8307e78e1844964b2df486d071 /apps/dav
parent3fc6d6234e39914d8e6e7d4b9ffe0b5420d3aa2d (diff)
downloadnextcloud-server-e2974f1133693c022585d3758df142e0f385cb3e.tar.gz
nextcloud-server-e2974f1133693c022585d3758df142e0f385cb3e.zip
Simplify return statement
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/CardDAV/SyncService.php4
-rw-r--r--apps/dav/lib/Connector/Sabre/Auth.php3
-rw-r--r--apps/dav/lib/Upload/UploadHome.php3
3 files changed, 3 insertions, 7 deletions
diff --git a/apps/dav/lib/CardDAV/SyncService.php b/apps/dav/lib/CardDAV/SyncService.php
index 4a5e45ecb80..ee68a4a26ec 100644
--- a/apps/dav/lib/CardDAV/SyncService.php
+++ b/apps/dav/lib/CardDAV/SyncService.php
@@ -236,9 +236,7 @@ class SyncService {
$root->appendChild($sync);
$root->appendChild($prop);
$dom->appendChild($root);
- $body = $dom->saveXML();
-
- return $body;
+ return $dom->saveXML();
}
/**
diff --git a/apps/dav/lib/Connector/Sabre/Auth.php b/apps/dav/lib/Connector/Sabre/Auth.php
index 456bb17138a..fcd1b34edbc 100644
--- a/apps/dav/lib/Connector/Sabre/Auth.php
+++ b/apps/dav/lib/Connector/Sabre/Auth.php
@@ -152,8 +152,7 @@ class Auth extends AbstractBasic {
*/
function check(RequestInterface $request, ResponseInterface $response) {
try {
- $result = $this->auth($request, $response);
- return $result;
+ return $this->auth($request, $response);
} catch (NotAuthenticated $e) {
throw $e;
} catch (Exception $e) {
diff --git a/apps/dav/lib/Upload/UploadHome.php b/apps/dav/lib/Upload/UploadHome.php
index ec31e93f4f9..6976ece9943 100644
--- a/apps/dav/lib/Upload/UploadHome.php
+++ b/apps/dav/lib/Upload/UploadHome.php
@@ -90,7 +90,6 @@ class UploadHome implements ICollection {
}
$view = new View('/' . $user->getUID() . '/uploads');
$rootInfo = $view->getFileInfo('');
- $impl = new Directory($view, $rootInfo);
- return $impl;
+ return new Directory($view, $rootInfo);
}
}