@@ -79,7 +79,7 @@ |
||
79 | 79 | * the next element. |
80 | 80 | * |
81 | 81 | * @param Reader $reader |
82 | - * @return mixed |
|
82 | + * @return CalendarSearchReport |
|
83 | 83 | */ |
84 | 84 | static function xmlDeserialize(Reader $reader) { |
85 | 85 | $elems = $reader->parseInnerTree([ |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | * |
180 | 180 | * By default this excludes the automatically generated birthday calendar |
181 | 181 | * |
182 | - * @param $principalUri |
|
182 | + * @param string $principalUri |
|
183 | 183 | * @param bool $excludeBirthday |
184 | 184 | * @return int |
185 | 185 | */ |
@@ -341,6 +341,9 @@ discard block |
||
341 | 341 | return array_values($calendars); |
342 | 342 | } |
343 | 343 | |
344 | + /** |
|
345 | + * @param string $principalUri |
|
346 | + */ |
|
344 | 347 | public function getUsersOwnCalendars($principalUri) { |
345 | 348 | $principalUri = $this->convertPrincipal($principalUri, true); |
346 | 349 | $fields = array_values($this->propertyMap); |
@@ -920,7 +923,7 @@ discard block |
||
920 | 923 | * calendar-data. If the result of a subsequent GET to this object is not |
921 | 924 | * the exact same as this request body, you should omit the ETag. |
922 | 925 | * |
923 | - * @param mixed $calendarId |
|
926 | + * @param integer $calendarId |
|
924 | 927 | * @param string $objectUri |
925 | 928 | * @param string $calendarData |
926 | 929 | * @return string |
@@ -974,7 +977,7 @@ discard block |
||
974 | 977 | * calendar-data. If the result of a subsequent GET to this object is not |
975 | 978 | * the exact same as this request body, you should omit the ETag. |
976 | 979 | * |
977 | - * @param mixed $calendarId |
|
980 | + * @param integer $calendarId |
|
978 | 981 | * @param string $objectUri |
979 | 982 | * @param string $calendarData |
980 | 983 | * @return string |
@@ -1551,7 +1554,7 @@ discard block |
||
1551 | 1554 | * @param string $principalUri |
1552 | 1555 | * @param string $uri |
1553 | 1556 | * @param array $properties |
1554 | - * @return mixed |
|
1557 | + * @return integer |
|
1555 | 1558 | */ |
1556 | 1559 | function createSubscription($principalUri, $uri, array $properties) { |
1557 | 1560 | |
@@ -2087,6 +2090,9 @@ discard block |
||
2087 | 2090 | return (int)$objectIds['id']; |
2088 | 2091 | } |
2089 | 2092 | |
2093 | + /** |
|
2094 | + * @param boolean $toV2 |
|
2095 | + */ |
|
2090 | 2096 | private function convertPrincipal($principalUri, $toV2) { |
2091 | 2097 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
2092 | 2098 | list(, $name) = URLUtil::splitPath($principalUri); |