@@ -27,7 +27,6 @@ |
||
27 | 27 | use OCP\IUser; |
28 | 28 | use OCP\ILogger; |
29 | 29 | use OCP\Files\Folder; |
30 | - |
|
31 | 30 | use OC\Share20\Exception\ShareNotFound; |
32 | 31 | |
33 | 32 | /** |
@@ -655,7 +655,7 @@ discard block |
||
655 | 655 | * if the size limit for the trash bin is reached, we delete the oldest |
656 | 656 | * files in the trash bin until we meet the limit again |
657 | 657 | * |
658 | - * @param array $files |
|
658 | + * @param \OCP\Files\FileInfo[] $files |
|
659 | 659 | * @param string $user |
660 | 660 | * @param int $availableSpace available disc space |
661 | 661 | * @return int size of deleted files |
@@ -683,7 +683,7 @@ discard block |
||
683 | 683 | /** |
684 | 684 | * delete files older then max storage time |
685 | 685 | * |
686 | - * @param array $files list of files sorted by mtime |
|
686 | + * @param \OCP\Files\FileInfo[] $files list of files sorted by mtime |
|
687 | 687 | * @param string $user |
688 | 688 | * @return integer[] size of deleted files and number of deleted files |
689 | 689 | */ |
@@ -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 |