@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * @brief checks if an event was edited and dies if it was |
104 | 104 | * @param (object) $vevent - vevent object of the event |
105 | 105 | * @param (int) $lastmodified - time of last modification as unix timestamp |
106 | - * @return (bool) |
|
106 | + * @return null|boolean |
|
107 | 107 | */ |
108 | 108 | public static function isNotModified($vevent, $lastmodified) { |
109 | 109 | $last_modified = $vevent->__get('LAST-MODIFIED'); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | /** |
118 | 118 | * @brief returns the default categories of ownCloud |
119 | - * @return (array) $categories |
|
119 | + * @return string[] $categories |
|
120 | 120 | */ |
121 | 121 | public static function getDefaultCategories() { |
122 | 122 | return array( |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | * @brief merges two calendars |
285 | 285 | * @param integer $id1 |
286 | 286 | * @param integer $id2 |
287 | - * @return boolean |
|
287 | + * @return boolean|null |
|
288 | 288 | */ |
289 | 289 | public static function mergeCalendar($id1, $id2) { |
290 | 290 | $calendar = self::find($id1); |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | |
336 | 336 | /** |
337 | 337 | * @brief returns the possible color for calendars |
338 | - * @return array |
|
338 | + * @return string[] |
|
339 | 339 | */ |
340 | 340 | public static function getCalendarColorOptions() { |
341 | 341 | return array( |
@@ -437,7 +437,6 @@ discard block |
||
437 | 437 | |
438 | 438 | /** |
439 | 439 | * @param array $calendar |
440 | - * @param string $userId |
|
441 | 440 | * @return boolean |
442 | 441 | */ |
443 | 442 | private static function isAllowedToDeleteCalendar($calendar) { |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * @brief Adds an object |
111 | 111 | * @param integer $id Calendar id |
112 | 112 | * @param string $data object |
113 | - * @return insertid |
|
113 | + * @return integer |
|
114 | 114 | */ |
115 | 115 | public static function add($id,$data) { |
116 | 116 | $calendar = OC_Calendar_Calendar::find($id); |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | |
238 | 238 | /** |
239 | 239 | * @brief edits an object with the data provided by sabredav |
240 | - * @param integer $id calendar id |
|
240 | + * @param string $cid calendar id |
|
241 | 241 | * @param string $uri the uri of the object |
242 | 242 | * @param string $data object |
243 | 243 | * @return boolean |
@@ -156,8 +156,8 @@ discard block |
||
156 | 156 | /** |
157 | 157 | * @brief checks if an event is already cached in a specific period |
158 | 158 | * @param (int) id - id of the event |
159 | - * @param (DateTime) $from - start for period in UTC |
|
160 | - * @param (DateTime) $until - end for period in UTC |
|
159 | + * @param integer $start |
|
160 | + * @param integer $end |
|
161 | 161 | * @return (bool) |
162 | 162 | */ |
163 | 163 | public static function is_cached_inperiod($id, $start, $end) { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | /** |
192 | 192 | * @brief removes the cache of an event |
193 | 193 | * @param (int) id - id of the event |
194 | - * @return (bool) |
|
194 | + * @return boolean|null |
|
195 | 195 | */ |
196 | 196 | public static function clean($id) { |
197 | 197 | $stmt = OCP\DB::prepare('DELETE FROM `*PREFIX*clndr_repeat` WHERE `eventid` = ?'); |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | /** |
201 | 201 | * @brief removes the cache of all events of a calendar |
202 | 202 | * @param (int) id - id of the calendar |
203 | - * @return (bool) |
|
203 | + * @return boolean|null |
|
204 | 204 | */ |
205 | 205 | public static function cleanCalendar($id) { |
206 | 206 | $stmt = OCP\DB::prepare('DELETE FROM `*PREFIX*clndr_repeat` WHERE `calid` = ?'); |
@@ -150,7 +150,7 @@ |
||
150 | 150 | |
151 | 151 | /** |
152 | 152 | * @param \Sabre\DAV\Server $server |
153 | - * @param $realm |
|
153 | + * @param string $realm |
|
154 | 154 | * @return bool |
155 | 155 | */ |
156 | 156 | private function auth(\Sabre\DAV\Server $server, $realm) { |
@@ -97,7 +97,7 @@ |
||
97 | 97 | * @param string $principalUri |
98 | 98 | * @param string $calendarUri |
99 | 99 | * @param array $properties |
100 | - * @return mixed |
|
100 | + * @return integer |
|
101 | 101 | * @throws \Sabre\DAV\Exception |
102 | 102 | */ |
103 | 103 | public function createCalendar($principalUri,$calendarUri, array $properties) { |
@@ -114,7 +114,7 @@ |
||
114 | 114 | * uses a DB call in config to return this) |
115 | 115 | * |
116 | 116 | * @staticvar null $timezone |
117 | - * @return DateTimeZone |
|
117 | + * @return \DateTimeZone|null |
|
118 | 118 | */ |
119 | 119 | public static function getUserTimezone() { |
120 | 120 | static $timezone = null; |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * @brief Get the source of the item to be stored in the database |
28 | 28 | * @param string Item |
29 | 29 | * @param string Owner of the item |
30 | - * @return mixed|array|false Source |
|
30 | + * @return boolean Source |
|
31 | 31 | * |
32 | 32 | * Return an array if the item is file dependent, the array needs two keys: 'item' and 'file' |
33 | 33 | * Return false if the item does not exist for the user |