@@ -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) { |
@@ -151,7 +151,6 @@ |
||
151 | 151 | /** |
152 | 152 | * saves database schema to xml file |
153 | 153 | * @param string $file name of file |
154 | - * @param int $mode |
|
155 | 154 | * @return bool |
156 | 155 | * |
157 | 156 | * TODO: write more documentation |
@@ -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)); |
@@ -116,8 +116,8 @@ |
||
116 | 116 | * Looks up a system wide defined value |
117 | 117 | * |
118 | 118 | * @param string $key the key of the value, under which it was saved |
119 | - * @param mixed $default the default value to be returned if the value isn't set |
|
120 | - * @return mixed the value or $default |
|
119 | + * @param string|false $default the default value to be returned if the value isn't set |
|
120 | + * @return string the value or $default |
|
121 | 121 | */ |
122 | 122 | public function getSystemValue($key, $default = '') { |
123 | 123 | return $this->systemConfig->getValue($key, $default); |
@@ -334,7 +334,7 @@ |
||
334 | 334 | * |
335 | 335 | * @param int $size file size in bytes |
336 | 336 | * @param array $files override '.htaccess' and '.user.ini' locations |
337 | - * @return bool false on failure, size on success |
|
337 | + * @return integer false on failure, size on success |
|
338 | 338 | */ |
339 | 339 | public static function setUploadLimit($size, $files = []) { |
340 | 340 | //don't allow user to break his config |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @NoAdminRequired |
74 | 74 | * @NoSubadminRequired |
75 | - * @return array |
|
75 | + * @return DataResponse |
|
76 | 76 | */ |
77 | 77 | public function addPersonalRootCertificate() { |
78 | 78 | return $this->addCertificate($this->userCertificateManager); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * Add a new personal root certificate to the system's trust store |
162 | 162 | * |
163 | - * @return array |
|
163 | + * @return DataResponse |
|
164 | 164 | */ |
165 | 165 | public function addSystemRootCertificate() { |
166 | 166 | return $this->addCertificate($this->systemCertificateManager); |
@@ -36,7 +36,6 @@ |
||
36 | 36 | use OCA\Files_Sharing\ISharedStorage; |
37 | 37 | use OCP\Constants; |
38 | 38 | use OCP\Files\Cache\ICacheEntry; |
39 | -use OCP\Files\Storage\IStorage; |
|
40 | 39 | use OCP\Lock\ILockingProvider; |
41 | 40 | |
42 | 41 | /** |
@@ -95,7 +95,7 @@ |
||
95 | 95 | * @param string $key |
96 | 96 | * @param mixed $value |
97 | 97 | * @param int $ttl |
98 | - * @return bool|mixed |
|
98 | + * @return boolean |
|
99 | 99 | * @throws \OC\ForbiddenException |
100 | 100 | */ |
101 | 101 | public function set($key, $value, $ttl = 0) { |