@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | /** |
73 | 73 | * @param array $entry |
74 | - * @return array |
|
74 | + * @return string |
|
75 | 75 | */ |
76 | 76 | protected function formatCacheEntry($entry) { |
77 | 77 | if (isset($entry['path'])) { |
@@ -190,6 +190,9 @@ discard block |
||
190 | 190 | return $this->cache->getStatus($this->getSourcePath($file)); |
191 | 191 | } |
192 | 192 | |
193 | + /** |
|
194 | + * @param \OCP\Files\Cache\ICacheEntry[] $results |
|
195 | + */ |
|
193 | 196 | private function formatSearchResults($results) { |
194 | 197 | $results = array_filter($results, array($this, 'filterCacheEntry')); |
195 | 198 | $results = array_values($results); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * Wrapper around file_put_contents($filename, $data) |
54 | 54 | * |
55 | 55 | * @param string $filename |
56 | - * @param $data |
|
56 | + * @param string $data |
|
57 | 57 | * @return int|false |
58 | 58 | */ |
59 | 59 | public function file_put_contents($filename, $data) { |
@@ -413,6 +413,10 @@ |
||
413 | 413 | return $url; |
414 | 414 | } |
415 | 415 | |
416 | + /** |
|
417 | + * @param string $feature |
|
418 | + * @param string $value |
|
419 | + */ |
|
416 | 420 | public function triggerChange($feature, $value = null) { |
417 | 421 | if ($this->emitter) { |
418 | 422 | $this->emitter->emit('\OC\User', 'changeUser', array($this, $feature, $value)); |
@@ -21,7 +21,6 @@ |
||
21 | 21 | namespace OCA\DAV\CardDAV\Xml; |
22 | 22 | |
23 | 23 | use Sabre\Xml\XmlSerializable; |
24 | -use Sabre\Xml\Element; |
|
25 | 24 | use Sabre\Xml\Writer; |
26 | 25 | |
27 | 26 | class Groups implements XmlSerializable { |
@@ -93,7 +93,7 @@ |
||
93 | 93 | /** |
94 | 94 | * returns a list of all possible property names |
95 | 95 | * |
96 | - * @return array |
|
96 | + * @return string[] |
|
97 | 97 | */ |
98 | 98 | static public function getPropertyNames() { |
99 | 99 | return [ |
@@ -138,7 +138,7 @@ |
||
138 | 138 | * This will be used in the {DAV:}supported-report-set property. |
139 | 139 | * |
140 | 140 | * @param string $uri |
141 | - * @return array |
|
141 | + * @return string[] |
|
142 | 142 | */ |
143 | 143 | public function getSupportedReportSet($uri) { |
144 | 144 | return [self::REPORT_NAME]; |
@@ -232,6 +232,9 @@ |
||
232 | 232 | return '"' . $this->info->getEtag() . '"'; |
233 | 233 | } |
234 | 234 | |
235 | + /** |
|
236 | + * @param string $path |
|
237 | + */ |
|
235 | 238 | private function getPartFileBasePath($path) { |
236 | 239 | $partFileInStorage = \OC::$server->getConfig()->getSystemValue('part_file_in_storage', true); |
237 | 240 | if ($partFileInStorage) { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | private $cachedShareTypes; |
69 | 69 | |
70 | 70 | /** |
71 | - * @param \Sabre\DAV\Tree $tree tree |
|
71 | + * @param ObjectTree $tree tree |
|
72 | 72 | * @param IUserSession $userSession user session |
73 | 73 | * @param \OCP\Files\Folder $userFolder user home folder |
74 | 74 | * @param \OCP\Share\IManager $shareManager share manager |
@@ -132,7 +132,7 @@ |
||
132 | 132 | * Returns the list of members for a group-principal |
133 | 133 | * |
134 | 134 | * @param string $principal |
135 | - * @return array |
|
135 | + * @return string[] |
|
136 | 136 | */ |
137 | 137 | function getGroupMemberSet($principal) { |
138 | 138 | // TODO: for now the group principal has only one member, the user itself |