@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use OC\AppFramework\Http\Request; |
| 16 | 16 | use OC\AppFramework\Utility\ControllerMethodReflector; |
| 17 | 17 | use OC\AppFramework\Middleware\Security\Exceptions\SecurityException; |
| 18 | -use OCP\AppFramework\Http; |
|
| 19 | 18 | use OCP\AppFramework\Http\JSONResponse; |
| 20 | 19 | use OCP\AppFramework\Http\Response; |
| 21 | 20 | |
@@ -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 | /** |
@@ -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 | /** |
@@ -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 | /** |
@@ -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 | /** |
@@ -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()) |