@@ -18,6 +18,9 @@ |
||
18 | 18 | $this->user = new \OC\User\User('', new \Test\Util\User\Dummy); |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @return \OC\Files\Storage\Storage |
|
23 | + */ |
|
21 | 24 | protected function getMockStorage() { |
22 | 25 | $storage = $this->getMock('\OCP\Files\Storage'); |
23 | 26 | $storage->expects($this->any()) |
@@ -18,6 +18,9 @@ |
||
18 | 18 | $this->user = new \OC\User\User('', new \Test\Util\User\Dummy); |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @return \OC\Files\Storage\Storage |
|
23 | + */ |
|
21 | 24 | protected function getMockStorage() { |
22 | 25 | $storage = $this->getMock('\OCP\Files\Storage'); |
23 | 26 | $storage->expects($this->any()) |
@@ -18,6 +18,9 @@ |
||
18 | 18 | $this->user = new \OC\User\User('', new \Test\Util\User\Dummy); |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @return \OC\Files\Storage\Storage |
|
23 | + */ |
|
21 | 24 | protected function getMockStorage() { |
22 | 25 | $storage = $this->getMock('\OCP\Files\Storage'); |
23 | 26 | $storage->expects($this->any()) |
@@ -759,6 +759,10 @@ discard block |
||
759 | 759 | ); |
760 | 760 | } |
761 | 761 | |
762 | + /** |
|
763 | + * @param OC\Files\View $view |
|
764 | + * @param string $path |
|
765 | + */ |
|
762 | 766 | private function createAndCheckVersions($view, $path) { |
763 | 767 | $view->file_put_contents($path, 'test file'); |
764 | 768 | $view->file_put_contents($path, 'version 1'); |
@@ -782,7 +786,6 @@ discard block |
||
782 | 786 | /** |
783 | 787 | * @param string $user |
784 | 788 | * @param bool $create |
785 | - * @param bool $password |
|
786 | 789 | */ |
787 | 790 | public static function loginHelper($user, $create = false) { |
788 | 791 |
@@ -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) { |
@@ -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) { |