@@ -198,7 +198,7 @@ public function getCalendarsForUser($principalUri)
198198
199199 // read-only is for backwards compatibility. Might go away in
200200 // the future.
201- $ calendar ['read-only ' ] = \ Sabre \ DAV \Sharing \Plugin::ACCESS_READ === (int ) $ row ['access ' ];
201+ $ calendar ['read-only ' ] = DAV \Sharing \Plugin::ACCESS_READ === (int ) $ row ['access ' ];
202202 }
203203
204204 foreach ($ this ->propertyMap as $ xmlName => $ dbName ) {
@@ -341,7 +341,7 @@ public function deleteCalendar($calendarId)
341341 $ stmt ->execute ([$ instanceId ]);
342342 $ access = (int ) $ stmt ->fetchColumn ();
343343
344- if (\ Sabre \ DAV \Sharing \Plugin::ACCESS_SHAREDOWNER === $ access ) {
344+ if (DAV \Sharing \Plugin::ACCESS_SHAREDOWNER === $ access ) {
345345 /**
346346 * If the user is the owner of the calendar, we delete all data and all
347347 * instances.
@@ -461,7 +461,7 @@ public function getCalendarObject($calendarId, $objectUri)
461461 'size ' => (int ) $ row ['size ' ],
462462 'calendardata ' => $ row ['calendardata ' ],
463463 'component ' => strtolower ($ row ['componenttype ' ]),
464- ];
464+ ];
465465 }
466466
467467 /**
@@ -619,7 +619,7 @@ protected function getDenormalizedData($calendarData)
619619 }
620620 }
621621 if (!$ componentType ) {
622- throw new \ Sabre \ DAV \Exception \BadRequest ('Calendar objects must have a VJOURNAL, VEVENT or VTODO component ' );
622+ throw new DAV \Exception \BadRequest ('Calendar objects must have a VJOURNAL, VEVENT or VTODO component ' );
623623 }
624624 if ('VEVENT ' === $ componentType ) {
625625 $ firstOccurence = $ component ->DTSTART ->getDateTime ()->getTimeStamp ();
@@ -1234,7 +1234,7 @@ public function getSchedulingObject($principalUri, $objectUri)
12341234 'lastmodified ' => $ row ['lastmodified ' ],
12351235 'etag ' => '" ' .$ row ['etag ' ].'" ' ,
12361236 'size ' => (int ) $ row ['size ' ],
1237- ];
1237+ ];
12381238 }
12391239
12401240 /**
@@ -1348,7 +1348,7 @@ public function updateInvites($calendarId, array $sharees)
13481348 FROM ' .$ this ->calendarInstancesTableName .' WHERE id = ? ' );
13491349
13501350 foreach ($ sharees as $ sharee ) {
1351- if (\ Sabre \ DAV \Sharing \Plugin::ACCESS_NOACCESS === $ sharee ->access ) {
1351+ if (DAV \Sharing \Plugin::ACCESS_NOACCESS === $ sharee ->access ) {
13521352 // if access was set no NOACCESS, it means access for an
13531353 // existing sharee was removed.
13541354 $ removeStmt ->execute ([$ calendarId , $ sharee ->href ]);
@@ -1358,11 +1358,11 @@ public function updateInvites($calendarId, array $sharees)
13581358 if (is_null ($ sharee ->principal )) {
13591359 // If the server could not determine the principal automatically,
13601360 // we will mark the invite status as invalid.
1361- $ sharee ->inviteStatus = \ Sabre \ DAV \Sharing \Plugin::INVITE_INVALID ;
1361+ $ sharee ->inviteStatus = DAV \Sharing \Plugin::INVITE_INVALID ;
13621362 } else {
13631363 // Because sabre/dav does not yet have an invitation system,
13641364 // every invite is automatically accepted for now.
1365- $ sharee ->inviteStatus = \ Sabre \ DAV \Sharing \Plugin::INVITE_ACCEPTED ;
1365+ $ sharee ->inviteStatus = DAV \Sharing \Plugin::INVITE_ACCEPTED ;
13661366 }
13671367
13681368 foreach ($ currentInvites as $ oldSharee ) {
@@ -1387,10 +1387,10 @@ public function updateInvites($calendarId, array $sharees)
13871387 $ calendarId ,
13881388 $ sharee ->principal ,
13891389 $ sharee ->access ,
1390- \ Sabre \ DAV \UUIDUtil::getUUID (),
1390+ DAV \UUIDUtil::getUUID (),
13911391 $ sharee ->href ,
13921392 isset ($ sharee ->properties ['{DAV:}displayname ' ]) ? $ sharee ->properties ['{DAV:}displayname ' ] : null ,
1393- $ sharee ->inviteStatus ?: \ Sabre \ DAV \Sharing \Plugin::INVITE_NORESPONSE ,
1393+ $ sharee ->inviteStatus ?: DAV \Sharing \Plugin::INVITE_NORESPONSE ,
13941394 $ instanceId ,
13951395 ]);
13961396 }
0 commit comments