|
@@ -60,9 +60,9 @@ discard block |
|
|
block discarded – undo |
|
60
|
60
|
|
|
61
|
61
|
if ($node instanceof IPrincipal) { |
|
62
|
62
|
// overwrite Sabre/Dav's implementation |
|
63
|
|
- $propFind->handle('{' . self::NS_CALDAV . '}calendar-user-type', function () use ($node) { |
|
|
63
|
+ $propFind->handle('{'.self::NS_CALDAV.'}calendar-user-type', function() use ($node) { |
|
64
|
64
|
if ($node instanceof IProperties) { |
|
65
|
|
- $calendarUserType = '{' . self::NS_CALDAV . '}calendar-user-type'; |
|
|
65
|
+ $calendarUserType = '{'.self::NS_CALDAV.'}calendar-user-type'; |
|
66
|
66
|
$props = $node->getProperties([$calendarUserType]); |
|
67
|
67
|
|
|
68
|
68
|
if (isset($props[$calendarUserType])) { |
|
@@ -100,7 +100,7 @@ discard block |
|
|
block discarded – undo |
|
100
|
100
|
*/ |
|
101
|
101
|
function propFindDefaultCalendarUrl(PropFind $propFind, INode $node) { |
|
102
|
102
|
if ($node instanceof IPrincipal) { |
|
103
|
|
- $propFind->handle('{' . self::NS_CALDAV . '}schedule-default-calendar-URL', function() use ($node) { |
|
|
103
|
+ $propFind->handle('{'.self::NS_CALDAV.'}schedule-default-calendar-URL', function() use ($node) { |
|
104
|
104
|
/** @var \OCA\DAV\CalDAV\Plugin $caldavPlugin */ |
|
105
|
105
|
$caldavPlugin = $this->server->getPlugin('caldav'); |
|
106
|
106
|
$principalUrl = $node->getPrincipalUrl(); |
|
@@ -131,7 +131,7 @@ discard block |
|
|
block discarded – undo |
|
131
|
131
|
]); |
|
132
|
132
|
} |
|
133
|
133
|
|
|
134
|
|
- $result = $this->server->getPropertiesForPath($calendarHomePath . '/' . $uri, [], 1); |
|
|
134
|
+ $result = $this->server->getPropertiesForPath($calendarHomePath.'/'.$uri, [], 1); |
|
135
|
135
|
if (empty($result)) { |
|
136
|
136
|
return null; |
|
137
|
137
|
} |