@@ -30,7 +30,6 @@ |
||
| 30 | 30 | use OCA\DAV\DAV\Sharing\Backend; |
| 31 | 31 | use OCA\DAV\DAV\Sharing\IShareable; |
| 32 | 32 | use OCP\DB\QueryBuilder\IQueryBuilder; |
| 33 | -use OCP\IConfig; |
|
| 34 | 33 | use OCP\IDBConnection; |
| 35 | 34 | use OCP\Security\ISecureRandom; |
| 36 | 35 | use Sabre\CalDAV\Backend\AbstractBackend; |
@@ -267,6 +267,9 @@ discard block |
||
| 267 | 267 | return \array_values($calendars); |
| 268 | 268 | } |
| 269 | 269 | |
| 270 | + /** |
|
| 271 | + * @param string $principalUri |
|
| 272 | + */ |
|
| 270 | 273 | public function getUsersOwnCalendars($principalUri) { |
| 271 | 274 | $principalUri = $this->convertPrincipal($principalUri, true); |
| 272 | 275 | $fields = \array_values($this->propertyMap); |
@@ -717,9 +720,9 @@ discard block |
||
| 717 | 720 | * |
| 718 | 721 | * This method must return null if the object did not exist. |
| 719 | 722 | * |
| 720 | - * @param mixed $calendarId |
|
| 723 | + * @param integer $calendarId |
|
| 721 | 724 | * @param string $objectUri |
| 722 | - * @return array|null |
|
| 725 | + * @return \Sabre\VObject\Component\VCalendar |
|
| 723 | 726 | */ |
| 724 | 727 | public function getCalendarObject($calendarId, $objectUri) { |
| 725 | 728 | $query = $this->db->getQueryBuilder(); |
@@ -809,7 +812,7 @@ discard block |
||
| 809 | 812 | * calendar-data. If the result of a subsequent GET to this object is not |
| 810 | 813 | * the exact same as this request body, you should omit the ETag. |
| 811 | 814 | * |
| 812 | - * @param mixed $calendarId |
|
| 815 | + * @param integer $calendarId |
|
| 813 | 816 | * @param string $objectUri |
| 814 | 817 | * @param string $calendarData |
| 815 | 818 | * @return string |
@@ -855,7 +858,7 @@ discard block |
||
| 855 | 858 | * calendar-data. If the result of a subsequent GET to this object is not |
| 856 | 859 | * the exact same as this request body, you should omit the ETag. |
| 857 | 860 | * |
| 858 | - * @param mixed $calendarId |
|
| 861 | + * @param integer $calendarId |
|
| 859 | 862 | * @param string $objectUri |
| 860 | 863 | * @param string $calendarData |
| 861 | 864 | * @return string |
@@ -1260,7 +1263,7 @@ discard block |
||
| 1260 | 1263 | * @param string $principalUri |
| 1261 | 1264 | * @param string $uri |
| 1262 | 1265 | * @param array $properties |
| 1263 | - * @return mixed |
|
| 1266 | + * @return integer |
|
| 1264 | 1267 | * @throws Forbidden |
| 1265 | 1268 | */ |
| 1266 | 1269 | public function createSubscription($principalUri, $uri, array $properties) { |
@@ -1658,6 +1661,9 @@ discard block |
||
| 1658 | 1661 | return $this->sharingBackend->applyShareAcl($resourceId, $acl); |
| 1659 | 1662 | } |
| 1660 | 1663 | |
| 1664 | + /** |
|
| 1665 | + * @param boolean $toV2 |
|
| 1666 | + */ |
|
| 1661 | 1667 | private function convertPrincipal($principalUri, $toV2 = null) { |
| 1662 | 1668 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
| 1663 | 1669 | list(, $name) = URLUtil::splitPath($principalUri); |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | /** |
| 117 | 117 | * Returns an array with all the child nodes |
| 118 | 118 | * |
| 119 | - * @return \Sabre\DAV\INode[] |
|
| 119 | + * @return CommentNode[] |
|
| 120 | 120 | */ |
| 121 | 121 | public function getChildren() { |
| 122 | 122 | return $this->findChildren(); |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | * The deserialize method is called during xml parsing. |
| 61 | 61 | * |
| 62 | 62 | * @param Reader $reader |
| 63 | - * @return mixed |
|
| 63 | + * @return null|ShareTypeList |
|
| 64 | 64 | */ |
| 65 | 65 | public static function xmlDeserialize(Reader $reader) { |
| 66 | 66 | $shareTypes = []; |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | * the next element. |
| 78 | 78 | * |
| 79 | 79 | * @param Reader $reader |
| 80 | - * @return mixed |
|
| 80 | + * @return null|TagList |
|
| 81 | 81 | */ |
| 82 | 82 | public static function xmlDeserialize(Reader $reader) { |
| 83 | 83 | $tags = []; |
@@ -223,7 +223,7 @@ |
||
| 223 | 223 | |
| 224 | 224 | /** |
| 225 | 225 | * @param string $path |
| 226 | - * @return INode|null |
|
| 226 | + * @return null|Node |
|
| 227 | 227 | */ |
| 228 | 228 | protected function getNodeForPath($path) { |
| 229 | 229 | $node = parent::getNodeForPath($path); |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | * Returns the list of members for a group-principal |
| 144 | 144 | * |
| 145 | 145 | * @param string $principal |
| 146 | - * @return array |
|
| 146 | + * @return string[] |
|
| 147 | 147 | */ |
| 148 | 148 | public function getGroupMemberSet($principal) { |
| 149 | 149 | // TODO: for now the group principal has only one member, the user itself |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | /** |
| 184 | 184 | * @param IFile[] $nodes |
| 185 | 185 | * @param IFile $backingFile |
| 186 | - * @param $fileLength |
|
| 186 | + * @param string $fileLength |
|
| 187 | 187 | * @return resource |
| 188 | 188 | * |
| 189 | 189 | * @throws \BadMethodCallException |
@@ -207,6 +207,9 @@ discard block |
||
| 207 | 207 | return $wrapped; |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | + /** |
|
| 211 | + * @param integer $current |
|
| 212 | + */ |
|
| 210 | 213 | protected function getNextNodeStart($current) { |
| 211 | 214 | foreach ($this->sortedNodes as $node) { |
| 212 | 215 | if ($current >= $node['start'] && $current < $node['end']) { |
@@ -220,7 +223,7 @@ discard block |
||
| 220 | 223 | } |
| 221 | 224 | |
| 222 | 225 | /** |
| 223 | - * @param $pos |
|
| 226 | + * @param integer $pos |
|
| 224 | 227 | */ |
| 225 | 228 | protected function getNodeForPosition($pos) { |
| 226 | 229 | foreach ($this->sortedNodes as $node) { |
@@ -107,6 +107,7 @@ |
||
| 107 | 107 | * |
| 108 | 108 | * @param string &$zsyncMetadata actual metadata |
| 109 | 109 | * @param string $destination destination path |
| 110 | + * @param string|null $zsyncMetadata |
|
| 110 | 111 | */ |
| 111 | 112 | private function postMoveZsync(&$zsyncMetadata, $destination) { |
| 112 | 113 | if (!$zsyncMetadata) { |
@@ -308,6 +308,9 @@ |
||
| 308 | 308 | return $result; |
| 309 | 309 | } |
| 310 | 310 | |
| 311 | + /** |
|
| 312 | + * @param string $mountPoint |
|
| 313 | + */ |
|
| 311 | 314 | public function removeShare($mountPoint) { |
| 312 | 315 | $mountPointObj = $this->mountManager->find($mountPoint); |
| 313 | 316 | $id = $mountPointObj->getStorage()->getCache()->getId(''); |