diff options
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/CardDAV/SyncService.php | 4 | ||||
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Auth.php | 3 | ||||
-rw-r--r-- | apps/dav/lib/Upload/UploadHome.php | 3 |
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); } } |