Skip to content

Commit

Permalink
fix: psalm ci fix
Browse files Browse the repository at this point in the history
Signed-off-by: yemkareems <yemkareems@gmail.com>
  • Loading branch information
yemkareems committed Jul 30, 2024
1 parent 860fb31 commit 49cac41
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/files/lib/Command/ListFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ protected function listFiles(
?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) {
Expand Down Expand Up @@ -167,7 +166,7 @@ protected function execute(
$this->listFiles(
$user,
$output,
$input->getOption("path"),
(string) $input->getOption("path"),
$input->getOption("type"),
(int) $input->getOption("minSize"),
(int) $input->getOption("maxSize")
Expand Down

0 comments on commit 49cac41

Please sign in to comment.