aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/lib/CalDAV/Calendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/lib/CalDAV/Calendar.php')
-rw-r--r--vendor/sabre/dav/lib/CalDAV/Calendar.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/vendor/sabre/dav/lib/CalDAV/Calendar.php b/vendor/sabre/dav/lib/CalDAV/Calendar.php
index 6e989314d..6c0bf5411 100644
--- a/vendor/sabre/dav/lib/CalDAV/Calendar.php
+++ b/vendor/sabre/dav/lib/CalDAV/Calendar.php
@@ -186,17 +186,17 @@ class Calendar implements ICalendar, DAV\IProperties, DAV\Sync\ISyncCollection,
* The contents of the new file must be a valid ICalendar string.
*
* @param string $name
- * @param resource $calendarData
+ * @param resource $data
*
* @return string|null
*/
- public function createFile($name, $calendarData = null)
+ public function createFile($name, $data = null)
{
- if (is_resource($calendarData)) {
- $calendarData = stream_get_contents($calendarData);
+ if (is_resource($data)) {
+ $data = stream_get_contents($data);
}
- return $this->caldavBackend->createCalendarObject($this->calendarInfo['id'], $name, $calendarData);
+ return $this->caldavBackend->createCalendarObject($this->calendarInfo['id'], $name, $data);
}
/**
@@ -442,7 +442,7 @@ class Calendar implements ICalendar, DAV\IProperties, DAV\Sync\ISyncCollection,
* @param int $syncLevel
* @param int $limit
*
- * @return array
+ * @return array|null
*/
public function getChanges($syncToken, $syncLevel, $limit = null)
{