@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | /** |
76 | 76 | * @param array $entry |
77 | - * @return array |
|
77 | + * @return string |
|
78 | 78 | */ |
79 | 79 | protected function formatCacheEntry($entry) { |
80 | 80 | if (isset($entry['path'])) { |
@@ -193,6 +193,9 @@ discard block |
||
193 | 193 | return $this->cache->getStatus($this->getSourcePath($file)); |
194 | 194 | } |
195 | 195 | |
196 | + /** |
|
197 | + * @param \OCP\Files\Cache\ICacheEntry[] $results |
|
198 | + */ |
|
196 | 199 | private function formatSearchResults($results) { |
197 | 200 | $results = \array_filter($results, [$this, 'filterCacheEntry']); |
198 | 201 | $results = \array_values($results); |
@@ -145,6 +145,9 @@ |
||
145 | 145 | return true; |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $path |
|
150 | + */ |
|
148 | 151 | public function url_stat($path) { |
149 | 152 | if (isset(self::$data[$path])) { |
150 | 153 | $size = \strlen(self::$data[$path]); |
@@ -170,7 +170,7 @@ |
||
170 | 170 | /** |
171 | 171 | * Returns whether the given mount point should be scanned |
172 | 172 | * |
173 | - * @param $mount mount point |
|
173 | + * @param \OC\Files\Mount\MountPoint|null $mount mount point |
|
174 | 174 | * @return bool true to scan, false to skip |
175 | 175 | */ |
176 | 176 | private function shouldScan($mount) { |
@@ -189,10 +189,10 @@ |
||
189 | 189 | * inform recipient about public link share |
190 | 190 | * |
191 | 191 | * @param string $recipient recipient email address |
192 | - * @param string $filename the shared file |
|
193 | - * @param string $link the public link |
|
194 | 192 | * @param array $options allows ['cc'] and ['bcc'] recipients |
195 | - * @param int $expiration expiration date (timestamp) |
|
193 | + * @param string $subject |
|
194 | + * @param boolean|string $htmlBody |
|
195 | + * @param boolean|string $textBody |
|
196 | 196 | * @return string[] $result of failed recipients |
197 | 197 | */ |
198 | 198 | public function sendLinkShareMailFromBody($recipient, $subject, $htmlBody, $textBody, $options = []) { |
@@ -322,6 +322,7 @@ |
||
322 | 322 | * @param string $error_msg The error message to show |
323 | 323 | * @param string $hint An optional hint message - needs to be properly escaped |
324 | 324 | * @param int HTTP Status Code |
325 | + * @param integer $httpStatusCode |
|
325 | 326 | */ |
326 | 327 | public static function printErrorPage($error_msg, $hint = '', $httpStatusCode = null) { |
327 | 328 | if ($error_msg === $hint) { |
@@ -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) { |
@@ -77,6 +77,9 @@ discard block |
||
77 | 77 | return $this->storage->getPermissions($path) & $this->mask; |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param string $path |
|
82 | + */ |
|
80 | 83 | private function isPartFile($path) { |
81 | 84 | return \pathinfo($path, PATHINFO_EXTENSION) === 'part'; |
82 | 85 | } |
@@ -126,7 +129,7 @@ discard block |
||
126 | 129 | * |
127 | 130 | * @param string $path |
128 | 131 | * @param \OC\Files\Storage\Storage (optional) the storage to pass to the cache |
129 | - * @return \OC\Files\Cache\Cache |
|
132 | + * @return \OCP\Files\Cache\ICache |
|
130 | 133 | */ |
131 | 134 | public function getCache($path = '', $storage = null) { |
132 | 135 | if (!$storage) { |