@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | $authPlugin->addBackend($authBackend); |
115 | 115 | |
116 | 116 | // debugging |
117 | - if(\OC::$server->getConfig()->getSystemValue('debug', false)) { |
|
117 | + if (\OC::$server->getConfig()->getSystemValue('debug', false)) { |
|
118 | 118 | $this->server->addPlugin(new \Sabre\DAV\Browser\Plugin()); |
119 | 119 | } else { |
120 | 120 | $this->server->addPlugin(new DummyGetResponsePlugin()); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $this->server->addPlugin(new \OCA\DAV\CalDAV\Plugin()); |
137 | 137 | $this->server->addPlugin(new \Sabre\CalDAV\ICSExportPlugin()); |
138 | 138 | $this->server->addPlugin(new \OCA\DAV\CalDAV\Schedule\Plugin()); |
139 | - if(\OC::$server->getConfig()->getSystemValue('caldav_send_invitations', true)) { |
|
139 | + if (\OC::$server->getConfig()->getSystemValue('caldav_send_invitations', true)) { |
|
140 | 140 | $this->server->addPlugin(new IMipPlugin($mailer, $logger, $timezone)); |
141 | 141 | } |
142 | 142 | $this->server->addPlugin(new \Sabre\CalDAV\Subscriptions\Plugin()); |
@@ -169,10 +169,10 @@ discard block |
||
169 | 169 | |
170 | 170 | // Some WebDAV clients do require Class 2 WebDAV support (locking), since |
171 | 171 | // we do not provide locking we emulate it using a fake locking plugin. |
172 | - if($request->isUserAgent([ |
|
172 | + if ($request->isUserAgent([ |
|
173 | 173 | '/WebDAVFS/', |
174 | 174 | '/Microsoft Office OneNote 2013/', |
175 | - '/^Microsoft-WebDAV/',// Microsoft-WebDAV-MiniRedir/6.1.7601 |
|
175 | + '/^Microsoft-WebDAV/', // Microsoft-WebDAV-MiniRedir/6.1.7601 |
|
176 | 176 | ])) { |
177 | 177 | $this->server->addPlugin(new FakeLockerPlugin()); |
178 | 178 | } |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } |
183 | 183 | |
184 | 184 | // wait with registering these until auth is handled and the filesystem is setup |
185 | - $this->server->on('beforeMethod', function () { |
|
185 | + $this->server->on('beforeMethod', function() { |
|
186 | 186 | // custom properties plugin must be the last one |
187 | 187 | $userSession = \OC::$server->getUserSession(); |
188 | 188 | $user = $userSession->getUser(); |
@@ -114,17 +114,17 @@ discard block |
||
114 | 114 | $subject = 'SabreDAV iTIP message'; |
115 | 115 | switch (strtoupper($iTipMessage->method)) { |
116 | 116 | case 'REPLY' : |
117 | - $subject = 'Re: ' . $summary; |
|
117 | + $subject = 'Re: '.$summary; |
|
118 | 118 | break; |
119 | 119 | case 'REQUEST' : |
120 | 120 | $subject = $summary; |
121 | 121 | break; |
122 | 122 | case 'CANCEL' : |
123 | - $subject = 'Cancelled: ' . $summary; |
|
123 | + $subject = 'Cancelled: '.$summary; |
|
124 | 124 | break; |
125 | 125 | } |
126 | 126 | |
127 | - $contentType = 'text/calendar; charset=UTF-8; method=' . $iTipMessage->method; |
|
127 | + $contentType = 'text/calendar; charset=UTF-8; method='.$iTipMessage->method; |
|
128 | 128 | |
129 | 129 | $message = $this->mailer->createMessage(); |
130 | 130 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $iTipMessage->scheduleStatus = '5.0; EMail delivery failed'; |
140 | 140 | } |
141 | 141 | $iTipMessage->scheduleStatus = '1.1; Scheduling message is sent via iMip'; |
142 | - } catch(\Exception $ex) { |
|
142 | + } catch (\Exception $ex) { |
|
143 | 143 | $this->logger->logException($ex, ['app' => 'dav']); |
144 | 144 | $iTipMessage->scheduleStatus = '5.0; EMail delivery failed'; |
145 | 145 | } |
@@ -170,13 +170,13 @@ discard block |
||
170 | 170 | $lastOccurrence = $firstOccurrence; |
171 | 171 | } |
172 | 172 | } else { |
173 | - $it = new EventIterator($vObject, (string)$component->UID); |
|
173 | + $it = new EventIterator($vObject, (string) $component->UID); |
|
174 | 174 | $maxDate = new \DateTime(self::MAX_DATE); |
175 | 175 | if ($it->isInfinite()) { |
176 | 176 | $lastOccurrence = $maxDate->getTimestamp(); |
177 | 177 | } else { |
178 | 178 | $end = $it->getDtEnd(); |
179 | - while($it->valid() && $end < $maxDate) { |
|
179 | + while ($it->valid() && $end < $maxDate) { |
|
180 | 180 | $end = $it->getDtEnd(); |
181 | 181 | $it->next(); |
182 | 182 |