@@ -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 | */ |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\Files\Service; |
26 | 26 | |
27 | -use OC\Files\FileInfo; |
|
28 | 27 | use OCP\Files\Node; |
29 | 28 | |
30 | 29 | /** |
@@ -24,13 +24,11 @@ |
||
24 | 24 | |
25 | 25 | use OCP\IGroupManager; |
26 | 26 | use OCP\IUserSession; |
27 | -use Sabre\DAV\Exception\NotFound; |
|
28 | 27 | use Sabre\DAV\PropFind; |
29 | 28 | use Sabre\DAV\PropPatch; |
30 | 29 | use Sabre\DAV\Exception\BadRequest; |
31 | 30 | use Sabre\DAV\Exception\UnsupportedMediaType; |
32 | 31 | use Sabre\DAV\Exception\Conflict; |
33 | - |
|
34 | 32 | use OCP\SystemTag\ISystemTag; |
35 | 33 | use OCP\SystemTag\ISystemTagManager; |
36 | 34 | use OCP\SystemTag\TagAlreadyExistsException; |
@@ -26,13 +26,11 @@ |
||
26 | 26 | use Sabre\DAV\Exception\NotFound; |
27 | 27 | use Sabre\DAV\Exception\BadRequest; |
28 | 28 | use Sabre\DAV\ICollection; |
29 | - |
|
30 | 29 | use OCP\SystemTag\ISystemTagManager; |
31 | 30 | use OCP\SystemTag\ISystemTag; |
32 | 31 | use OCP\SystemTag\TagNotFoundException; |
33 | 32 | use OCP\IGroupManager; |
34 | 33 | use OCP\IUserSession; |
35 | -use OC\User\NoUserException; |
|
36 | 34 | |
37 | 35 | class SystemTagsByIdCollection implements ICollection { |
38 | 36 |
@@ -79,6 +79,10 @@ |
||
79 | 79 | // TODO: throw exceptions if necessary |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param Controller $controller |
|
84 | + * @param string $methodName |
|
85 | + */ |
|
82 | 86 | private function checkTwoFactor($controller, $methodName) { |
83 | 87 | // If two-factor auth is in progress disallow access to any controllers |
84 | 88 | // defined within "LoginController". |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * make preview_icon available as a simple function |
184 | 184 | * Returns the path to the preview of the image. |
185 | 185 | * @param string $path path of file |
186 | - * @return link to the preview |
|
186 | + * @return string to the preview |
|
187 | 187 | * |
188 | 188 | * For further information have a look at OC_Helper::previewIcon |
189 | 189 | */ |
@@ -193,6 +193,7 @@ discard block |
||
193 | 193 | |
194 | 194 | /** |
195 | 195 | * @param string $path |
196 | + * @param string $token |
|
196 | 197 | */ |
197 | 198 | function publicPreview_icon ( $path, $token ) { |
198 | 199 | return OC_Helper::publicPreviewIcon( $path, $token ); |
@@ -96,7 +96,7 @@ |
||
96 | 96 | /** |
97 | 97 | * Appends a variable |
98 | 98 | * @param string $key key |
99 | - * @param mixed $value value |
|
99 | + * @param string $value value |
|
100 | 100 | * @return boolean|null |
101 | 101 | * |
102 | 102 | * This function assigns a variable in an array context. If the key already |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | * ->leftJoin('u', 'phonenumbers', 'p', 'u.id = p.user_id'); |
307 | 307 | * </code> |
308 | 308 | * |
309 | - * @param mixed $select The selection expressions. |
|
309 | + * @param string $select The selection expressions. |
|
310 | 310 | * |
311 | 311 | * @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance. |
312 | 312 | */ |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | * ->leftJoin('u', 'phonenumbers', 'p', 'u.id = p.user_id'); |
331 | 331 | * </code> |
332 | 332 | * |
333 | - * @param mixed $select The selection expressions. |
|
333 | + * @param QueryFunction $select The selection expressions. |
|
334 | 334 | * @param string $alias The column alias used in the constructed query. |
335 | 335 | * |
336 | 336 | * @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance. |
@@ -652,7 +652,7 @@ discard block |
||
652 | 652 | * ->where($or); |
653 | 653 | * </code> |
654 | 654 | * |
655 | - * @param mixed $predicates The restriction predicates. |
|
655 | + * @param CompositeExpression $predicates The restriction predicates. |
|
656 | 656 | * |
657 | 657 | * @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance. |
658 | 658 | */ |
@@ -1034,7 +1034,7 @@ discard block |
||
1034 | 1034 | * |
1035 | 1035 | * @param string $name |
1036 | 1036 | * |
1037 | - * @return IParameter |
|
1037 | + * @return string |
|
1038 | 1038 | */ |
1039 | 1039 | public function createParameter($name) { |
1040 | 1040 | return new Parameter(':' . $name); |
@@ -22,18 +22,12 @@ |
||
22 | 22 | namespace OCA\Files_External\Command; |
23 | 23 | |
24 | 24 | use OC\Core\Command\Base; |
25 | -use OCA\Files_External\Lib\Auth\AuthMechanism; |
|
26 | 25 | use OCA\Files_External\Lib\Backend\Backend; |
27 | 26 | use OCA\Files_External\Lib\DefinitionParameter; |
28 | 27 | use OCA\Files_External\Service\BackendService; |
29 | 28 | use Symfony\Component\Console\Command\Command; |
30 | -use Symfony\Component\Console\Helper\Table; |
|
31 | -use Symfony\Component\Console\Helper\TableHelper; |
|
32 | -use Symfony\Component\Console\Input\ArrayInput; |
|
33 | 29 | use Symfony\Component\Console\Input\InputArgument; |
34 | 30 | use Symfony\Component\Console\Input\InputInterface; |
35 | -use Symfony\Component\Console\Input\InputOption; |
|
36 | -use Symfony\Component\Console\Input\Input; |
|
37 | 31 | use Symfony\Component\Console\Output\OutputInterface; |
38 | 32 | |
39 | 33 | class Backends extends Base { |