diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-08-01 15:10:33 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-26 11:55:39 +0200 |
commit | dd248caa0984c6d932855aa39fd3025d6f553f82 (patch) | |
tree | 5d1a319cce21447f32ea6c5d90d3256d9c5b4cab /apps/dav/lib | |
parent | 189911650958b2bdca8f733a8f891af373c96ae9 (diff) | |
download | nextcloud-server-dd248caa0984c6d932855aa39fd3025d6f553f82.tar.gz nextcloud-server-dd248caa0984c6d932855aa39fd3025d6f553f82.zip |
fix some bracket positions
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/CalDAV/Publishing/PublishPlugin.php | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php index 99353253b05..56bdc6b6a90 100644 --- a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php +++ b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php @@ -14,8 +14,7 @@ use OCA\DAV\CalDAV\Calendar; use OCP\IURLGenerator; use OCP\IConfig; -class PublishPlugin extends ServerPlugin -{ +class PublishPlugin extends ServerPlugin { const NS_CALENDARSERVER = 'http://calendarserver.org/ns/'; /** @@ -45,8 +44,7 @@ class PublishPlugin extends ServerPlugin * @param IConfig $config * @param IURLGenerator $urlGenerator */ - public function __construct(IConfig $config, IURLGenerator $urlGenerator) - { + public function __construct(IConfig $config, IURLGenerator $urlGenerator) { $this->config = $config; $this->urlGenerator = $urlGenerator; } @@ -59,8 +57,7 @@ class PublishPlugin extends ServerPlugin * * @return string[] */ - public function getFeatures() - { + public function getFeatures() { // May have to be changed to be detected return ['oc-calendar-publishing']; } @@ -73,8 +70,7 @@ class PublishPlugin extends ServerPlugin * * @return string */ - public function getPluginName() - { + public function getPluginName() { return 'oc-calendar-publishing'; } @@ -88,16 +84,14 @@ class PublishPlugin extends ServerPlugin * * @param Server $server */ - public function initialize(Server $server) - { + public function initialize(Server $server) { $this->server = $server; $this->server->on('method:POST', [$this, 'httpPost']); $this->server->on('propFind', [$this, 'propFind']); } - public function propFind(PropFind $propFind, INode $node) - { + public function propFind(PropFind $propFind, INode $node) { if ($node instanceof Calendar) { $token = md5($this->config->getSystemValue('secret', '').$node->getResourceId()); @@ -125,8 +119,7 @@ class PublishPlugin extends ServerPlugin * * @return null|bool */ - public function httpPost(RequestInterface $request, ResponseInterface $response) - { + public function httpPost(RequestInterface $request, ResponseInterface $response) { $path = $request->getPath(); // Only handling xml |