@@ -32,7 +32,7 @@ |
||
32 | 32 | private $webRoot; |
33 | 33 | |
34 | 34 | /** |
35 | - * @param $webRoot |
|
35 | + * @param string $webRoot |
|
36 | 36 | */ |
37 | 37 | public function __construct($webRoot) { |
38 | 38 | $this->webRoot = $webRoot; |
@@ -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()) |
@@ -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()) |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * removes an entry from the comments run time cache |
162 | 162 | * |
163 | - * @param mixed $id the comment's id |
|
163 | + * @param string $id the comment's id |
|
164 | 164 | */ |
165 | 165 | protected function uncache($id) { |
166 | 166 | $id = strval($id); |
@@ -324,8 +324,8 @@ discard block |
||
324 | 324 | } |
325 | 325 | |
326 | 326 | /** |
327 | - * @param $objectType string the object type, e.g. 'files' |
|
328 | - * @param $objectId string the id of the object |
|
327 | + * @param string $objectType string the object type, e.g. 'files' |
|
328 | + * @param string $objectId string the id of the object |
|
329 | 329 | * @return Int |
330 | 330 | * @since 9.0.0 |
331 | 331 | */ |
@@ -28,7 +28,6 @@ |
||
28 | 28 | use OCP\BackgroundJob\IJobList; |
29 | 29 | use OCP\IRequest; |
30 | 30 | use OCP\Security\ISecureRandom; |
31 | -use OCP\Security\StringUtils; |
|
32 | 31 | |
33 | 32 | /** |
34 | 33 | * Class OCSAuthAPI |
@@ -90,9 +90,9 @@ |
||
90 | 90 | |
91 | 91 | /** |
92 | 92 | * @param string $key |
93 | - * @param mixed $value |
|
93 | + * @param string|null $value |
|
94 | 94 | * @param int $ttl |
95 | - * @return bool|mixed |
|
95 | + * @return boolean |
|
96 | 96 | * @throws \OC\ForbiddenException |
97 | 97 | */ |
98 | 98 | public function set($key, $value, $ttl = 0) { |
@@ -22,7 +22,6 @@ |
||
22 | 22 | |
23 | 23 | namespace OC\App; |
24 | 24 | |
25 | -use OC_Util; |
|
26 | 25 | use OCP\IConfig; |
27 | 26 | |
28 | 27 | /** |