diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index b12ca916106d5..3fb0ebe871e9e 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -123,86 +123,6 @@ VCalendar - atomic(function () use ($calendarId, $syncToken, $syncLevel, $limit, $calendarType) { - // Current synctoken - $qb = $this->db->getQueryBuilder(); - $qb->select('synctoken') - ->from('calendars') - ->where( - $qb->expr()->eq('id', $qb->createNamedParameter($calendarId)) - ); - $stmt = $qb->executeQuery(); - $currentToken = $stmt->fetchOne(); - - if ($currentToken === false) { - return null; - } - - $result = [ - 'syncToken' => $currentToken, - 'added' => [], - 'modified' => [], - 'deleted' => [], - ]; - - if ($syncToken) { - $qb = $this->db->getQueryBuilder(); - - $qb->select('uri', 'operation') - ->from('calendarchanges') - ->where( - $qb->expr()->andX( - $qb->expr()->gte('synctoken', $qb->createNamedParameter($syncToken)), - $qb->expr()->lt('synctoken', $qb->createNamedParameter($currentToken)), - $qb->expr()->eq('calendarid', $qb->createNamedParameter($calendarId)), - $qb->expr()->eq('calendartype', $qb->createNamedParameter($calendarType)) - ) - )->orderBy('synctoken'); - if (is_int($limit) && $limit > 0) { - $qb->setMaxResults($limit); - } - - // Fetching all changes - $stmt = $qb->executeQuery(); - $changes = []; - - // This loop ensures that any duplicates are overwritten, only the - // last change on a node is relevant. - while ($row = $stmt->fetch()) { - $changes[$row['uri']] = $row['operation']; - } - $stmt->closeCursor(); - - foreach ($changes as $uri => $operation) { - switch ($operation) { - case 1: - $result['added'][] = $uri; - break; - case 2: - $result['modified'][] = $uri; - break; - case 3: - $result['deleted'][] = $uri; - break; - } - } - } else { - // No synctoken supplied, this is the initial sync. - $qb = $this->db->getQueryBuilder(); - $qb->select('uri') - ->from('calendarobjects') - ->where( - $qb->expr()->andX( - $qb->expr()->eq('calendarid', $qb->createNamedParameter($calendarId)), - $qb->expr()->eq('calendartype', $qb->createNamedParameter($calendarType)) - ) - ); - $stmt = $qb->executeQuery(); - $result['added'] = $stmt->fetchAll(\PDO::FETCH_COLUMN); - $stmt->closeCursor(); - } - return $result; - }, $this->db)]]> null @@ -508,7 +428,6 @@ \OCA\Circles\Api\v1\Circles - getById getPath @@ -813,12 +732,6 @@ $shareId (int)$data['id'] - - $nodes[0] - - - \OCP\Files\File|\OCP\Files\Folder - @@ -1111,15 +1024,8 @@ - - $trashFiles - - - null - $file - getById @@ -1228,14 +1134,6 @@ array{0: int, 1: int, 2: int} - - - false - - - users]]> - - $ln + 1 @@ -1415,21 +1313,11 @@ isUserScopeEnabled - - - $arguments - - $arguments - - - $arguments - - $result === false @@ -1804,15 +1692,7 @@ - - $row['provider_id'], - 'uid' => $row['uid'], - 'enabled' => 1 === (int) $row['enabled'], - ]; - }, $rows)]]> - + ]]> @@ -2011,10 +1891,7 @@ 'width' => $format, ])]]> - - public function formatDateSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null) { - public function formatTimeSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null) { - + l($type, $timestamp, [ 'width' => $format, @@ -2237,7 +2114,6 @@ root->get($this->getFullPath($path))]]> - root->getByIdInPath((int)$id, $this->getPath())]]> createNode($file->getPath(), $file); }, $files)]]> @@ -2933,15 +2809,6 @@ dbprettyname]]> - - - !self::isResharingAllowed() - - - getParents - getParents - - getId()]]> @@ -3003,12 +2870,6 @@ private $roomShareProvider = null; private $shareByCircleProvider = null; - - getLazyRootFolder - getLazyRootFolder - getLazyRootFolder - getLazyRootFolder -