@@ -43,7 +43,7 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @param object|string $object an object or classname |
|
46 | + * @param \OCP\AppFramework\Controller $object an object or classname |
|
47 | 47 | * @param string $method the method which we want to inspect |
48 | 48 | * @throws \ReflectionException |
49 | 49 | */ |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @param $source |
|
65 | - * @param $path |
|
64 | + * @param resource $source |
|
65 | + * @param string $path |
|
66 | 66 | * @return resource |
67 | 67 | */ |
68 | 68 | public static function wrap($source, $path) { |
@@ -122,6 +122,9 @@ discard block |
||
122 | 122 | return parent::stream_write($data); |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @param string $data |
|
127 | + */ |
|
125 | 128 | private function updateHashingContexts($data) { |
126 | 129 | foreach ($this->hashingContexts as $ctx) { |
127 | 130 | \hash_update($ctx, $data); |
@@ -195,7 +198,7 @@ discard block |
||
195 | 198 | } |
196 | 199 | |
197 | 200 | /** |
198 | - * @return mixed |
|
201 | + * @return string |
|
199 | 202 | * @return string |
200 | 203 | */ |
201 | 204 | private function getPathFromStreamContext() { |
@@ -77,6 +77,8 @@ |
||
77 | 77 | |
78 | 78 | /** |
79 | 79 | * If only a single attribute should be listed omit the key to make it fit in one row |
80 | + * @param string $key |
|
81 | + * @param boolean $useKey |
|
80 | 82 | */ |
81 | 83 | private function add(&$row, $key, $val, $useKey) { |
82 | 84 | if ($useKey) { |
@@ -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; |
@@ -266,6 +266,9 @@ discard block |
||
266 | 266 | return \array_values($calendars); |
267 | 267 | } |
268 | 268 | |
269 | + /** |
|
270 | + * @param string $principalUri |
|
271 | + */ |
|
269 | 272 | public function getUsersOwnCalendars($principalUri) { |
270 | 273 | $principalUri = $this->convertPrincipal($principalUri, true); |
271 | 274 | $fields = \array_values($this->propertyMap); |
@@ -1259,7 +1262,7 @@ discard block |
||
1259 | 1262 | * @param string $principalUri |
1260 | 1263 | * @param string $uri |
1261 | 1264 | * @param array $properties |
1262 | - * @return mixed |
|
1265 | + * @return integer |
|
1263 | 1266 | * @throws Forbidden |
1264 | 1267 | */ |
1265 | 1268 | public function createSubscription($principalUri, $uri, array $properties) { |
@@ -1657,6 +1660,9 @@ discard block |
||
1657 | 1660 | return $this->sharingBackend->applyShareAcl($resourceId, $acl); |
1658 | 1661 | } |
1659 | 1662 | |
1663 | + /** |
|
1664 | + * @param boolean $toV2 |
|
1665 | + */ |
|
1660 | 1666 | private function convertPrincipal($principalUri, $toV2 = null) { |
1661 | 1667 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
1662 | 1668 | list(, $name) = \Sabre\Uri\split($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 |