fix: psalm ci fix

Signed-off-by: yemkareems <yemkareems@gmail.com>
This commit is contained in:
yemkareems 2024-07-29 13:26:10 +05:30
parent 860fb314eb
commit 49cac414c0

View file

@ -97,10 +97,9 @@ class ListFiles extends Base {
?int $maxSize = 0
): void {
try {
/** @var Folder $userFolder **/
$userFolder = $this->rootFolder->getUserFolder($user);
/** @var Folder $pathList **/
$pathList = $userFolder->get('/'.$path);
$pathList = $userFolder->get('/' . $path);
$files = $pathList->getDirectoryListing();
foreach ($files as $file) {
@ -167,7 +166,7 @@ class ListFiles extends Base {
$this->listFiles(
$user,
$output,
$input->getOption("path"),
(string) $input->getOption("path"),
$input->getOption("type"),
(int) $input->getOption("minSize"),
(int) $input->getOption("maxSize")