@@ -470,7 +470,7 @@ |
||
470 | 470 | /** |
471 | 471 | * @param string $userId |
472 | 472 | * @param array $data |
473 | - * @return mixed |
|
473 | + * @return string |
|
474 | 474 | * @throws \OCP\Files\NotFoundException |
475 | 475 | */ |
476 | 476 | private static function fillStorageInfo($userId, $data) { |
@@ -369,6 +369,7 @@ |
||
369 | 369 | * already. If not, it will marked like this, because it is expected that |
370 | 370 | * the method will be run, when false is returned. |
371 | 371 | * @param string email | quota | avatar (can be extended) |
372 | + * @param string $feature |
|
372 | 373 | * @return bool |
373 | 374 | */ |
374 | 375 | private function wasRefreshed($feature) { |
@@ -77,7 +77,6 @@ discard block |
||
77 | 77 | |
78 | 78 | /** |
79 | 79 | * @Then /^users returned are$/ |
80 | - * @param \Behat\Gherkin\Node\TableNode|null $formData |
|
81 | 80 | */ |
82 | 81 | public function theUsersShouldBe($usersList) { |
83 | 82 | if ($usersList instanceof \Behat\Gherkin\Node\TableNode) { |
@@ -90,7 +89,6 @@ discard block |
||
90 | 89 | |
91 | 90 | /** |
92 | 91 | * @Then /^groups returned are$/ |
93 | - * @param \Behat\Gherkin\Node\TableNode|null $formData |
|
94 | 92 | */ |
95 | 93 | public function theGroupsShouldBe($groupsList) { |
96 | 94 | if ($groupsList instanceof \Behat\Gherkin\Node\TableNode) { |
@@ -225,7 +223,6 @@ discard block |
||
225 | 223 | |
226 | 224 | /** |
227 | 225 | * @When /^sending "([^"]*)" to "([^"]*)" with$/ |
228 | - * @param \Behat\Gherkin\Node\TableNode|null $formData |
|
229 | 226 | */ |
230 | 227 | public function sendingToWith($verb, $url, $body) { |
231 | 228 | $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php" . $url; |
@@ -129,6 +129,9 @@ |
||
129 | 129 | return $paths; |
130 | 130 | } |
131 | 131 | |
132 | + /** |
|
133 | + * @param string $fullPath |
|
134 | + */ |
|
132 | 135 | protected function isValidPath($fullPath) { |
133 | 136 | foreach ($this->validRoots as $root => $true) { |
134 | 137 | if (substr($fullPath, 0, strlen($root) + 1) === $root . '/') { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * List all installed apps |
91 | 91 | * |
92 | - * @return string[] |
|
92 | + * @return integer[] |
|
93 | 93 | */ |
94 | 94 | public function getInstalledApps() { |
95 | 95 | return array_keys($this->getInstalledAppsValues()); |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | /** |
222 | 222 | * Returns a list of apps that need upgrade |
223 | 223 | * |
224 | - * @param array $version ownCloud version as array of version components |
|
224 | + * @param array $ocVersion ownCloud version as array of version components |
|
225 | 225 | * @return array list of app info from apps that need an upgrade |
226 | 226 | * |
227 | 227 | * @internal |
@@ -150,7 +150,7 @@ |
||
150 | 150 | |
151 | 151 | /** |
152 | 152 | * @param \Sabre\DAV\Server $server |
153 | - * @param $realm |
|
153 | + * @param string $realm |
|
154 | 154 | * @return bool |
155 | 155 | */ |
156 | 156 | private function auth(\Sabre\DAV\Server $server, $realm) { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * Indicate that we support LOCK and UNLOCK |
60 | 60 | * |
61 | 61 | * @param string $path |
62 | - * @return array |
|
62 | + * @return string[] |
|
63 | 63 | */ |
64 | 64 | public function getHTTPMethods($path) { |
65 | 65 | return [ |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * Indicate that we support locking |
73 | 73 | * |
74 | - * @return array |
|
74 | + * @return integer[] |
|
75 | 75 | */ |
76 | 76 | function getFeatures() { |
77 | 77 | return [2]; |
@@ -213,6 +213,9 @@ discard block |
||
213 | 213 | return '"' . $this->info->getEtag() . '"'; |
214 | 214 | } |
215 | 215 | |
216 | + /** |
|
217 | + * @param string $path |
|
218 | + */ |
|
216 | 219 | private function emitPreHooks($exists, $path = null) { |
217 | 220 | if (is_null($path)) { |
218 | 221 | $path = $this->path; |
@@ -238,6 +241,9 @@ discard block |
||
238 | 241 | return $run; |
239 | 242 | } |
240 | 243 | |
244 | + /** |
|
245 | + * @param string $path |
|
246 | + */ |
|
241 | 247 | private function emitPostHooks($exists, $path = null) { |
242 | 248 | if (is_null($path)) { |
243 | 249 | $path = $this->path; |
@@ -260,7 +266,7 @@ discard block |
||
260 | 266 | /** |
261 | 267 | * Returns the data |
262 | 268 | * |
263 | - * @return string|resource |
|
269 | + * @return resource |
|
264 | 270 | * @throws Forbidden |
265 | 271 | * @throws ServiceUnavailable |
266 | 272 | */ |
@@ -314,7 +320,7 @@ discard block |
||
314 | 320 | * |
315 | 321 | * If null is returned, we'll assume application/octet-stream |
316 | 322 | * |
317 | - * @return mixed |
|
323 | + * @return string |
|
318 | 324 | */ |
319 | 325 | public function getContentType() { |
320 | 326 | $mimeType = $this->info->getMimetype(); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | private $tree; |
47 | 47 | |
48 | 48 | /** |
49 | - * @param \Sabre\DAV\Tree $tree tree |
|
49 | + * @param ObjectTree $tree tree |
|
50 | 50 | */ |
51 | 51 | public function __construct(Tree $tree) { |
52 | 52 | $this->tree = $tree; |
@@ -30,7 +30,6 @@ |
||
30 | 30 | use Sabre\DAV\ServerPlugin; |
31 | 31 | use Sabre\DAV\Tree; |
32 | 32 | use Sabre\HTTP\RequestInterface; |
33 | -use Sabre\HTTP\ResponseInterface; |
|
34 | 33 | |
35 | 34 | class LockPlugin extends ServerPlugin { |
36 | 35 | /** |