@@ -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 | /** |
@@ -120,7 +120,7 @@ |
||
120 | 120 | * Set a value in the cache if it's not already stored |
121 | 121 | * |
122 | 122 | * @param string $key |
123 | - * @param mixed $value |
|
123 | + * @param integer $value |
|
124 | 124 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
125 | 125 | * @return bool |
126 | 126 | */ |
@@ -8,8 +8,6 @@ |
||
8 | 8 | use Sabre\DAV\Exception\NotFound; |
9 | 9 | use Sabre\DAV\Server; |
10 | 10 | use Sabre\DAV\ServerPlugin; |
11 | -use Sabre\DAV\XMLUtil; |
|
12 | -use Sabre\DAVACL\IACL; |
|
13 | 11 | use Sabre\HTTP\RequestInterface; |
14 | 12 | use Sabre\HTTP\ResponseInterface; |
15 | 13 |
@@ -92,7 +92,6 @@ discard block |
||
92 | 92 | |
93 | 93 | /** |
94 | 94 | * @Annotation |
95 | - * @param int $test |
|
96 | 95 | */ |
97 | 96 | public function testReadTypeIntAnnotations(){ |
98 | 97 | $reader = new ControllerMethodReflector(); |
@@ -107,7 +106,7 @@ discard block |
||
107 | 106 | /** |
108 | 107 | * @Annotation |
109 | 108 | * @param int $a |
110 | - * @param int $b |
|
109 | + * @param double $b |
|
111 | 110 | */ |
112 | 111 | public function arguments3($a, float $b, int $c, $d){} |
113 | 112 | |
@@ -130,7 +129,6 @@ discard block |
||
130 | 129 | |
131 | 130 | /** |
132 | 131 | * @Annotation |
133 | - * @param double $test something special |
|
134 | 132 | */ |
135 | 133 | public function testReadTypeDoubleAnnotations(){ |
136 | 134 | $reader = new ControllerMethodReflector(); |
@@ -144,7 +142,6 @@ discard block |
||
144 | 142 | |
145 | 143 | /** |
146 | 144 | * @Annotation |
147 | - * @param string $foo |
|
148 | 145 | */ |
149 | 146 | public function testReadTypeWhitespaceAnnotations(){ |
150 | 147 | $reader = new ControllerMethodReflector(); |