@@ -926,6 +926,9 @@ |
||
926 | 926 | $this->assertSame(0, count($result6)); |
927 | 927 | } |
928 | 928 | |
929 | + /** |
|
930 | + * @param string[] $expected |
|
931 | + */ |
|
929 | 932 | public function verifyResult($result, $expected) { |
930 | 933 | foreach ($result as $r) { |
931 | 934 | if (in_array($r['item_target'], $expected)) { |
@@ -28,6 +28,9 @@ |
||
28 | 28 | |
29 | 29 | protected $mounts = []; |
30 | 30 | |
31 | + /** |
|
32 | + * @param string $mountPoint |
|
33 | + */ |
|
31 | 34 | protected function registerMount($userId, $storage, $mountPoint, $arguments = null) { |
32 | 35 | if (!isset($this->mounts[$userId])) { |
33 | 36 | $this->mounts[$userId] = []; |
@@ -357,6 +357,9 @@ |
||
357 | 357 | $result->closeCursor(); |
358 | 358 | } |
359 | 359 | |
360 | + /** |
|
361 | + * @param string $user |
|
362 | + */ |
|
360 | 363 | protected function mockUserSession($user) { |
361 | 364 | $mockUser = $this->getMockBuilder('\OCP\IUser') |
362 | 365 | ->disableOriginalConstructor() |
@@ -21,6 +21,9 @@ |
||
21 | 21 | $this->user = new \OC\User\User('', new \Test\Util\User\Dummy); |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @return \OC\Files\Storage\Storage |
|
26 | + */ |
|
24 | 27 | protected function getMockStorage() { |
25 | 28 | $storage = $this->getMock('\OCP\Files\Storage'); |
26 | 29 | $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) { |
@@ -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) { |