Skip to content

Commit

Permalink
fix: Psalm static analysis issues
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Sep 13, 2024
1 parent 23d4767 commit 6c8da50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/BackgroundJobs/StorageCrawlJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ protected function run($argument): void {
}
if (!in_array(ImagenetClassifier::MODEL_NAME, $models) && in_array(LandmarksClassifier::MODEL_NAME, $models)) {
$tags = $this->tagManager->getTagsForFiles([$queueFile->getFileId()]);
/** @var \OCP\SystemTag\ISystemTag[] $fileTags */
$fileTags = $tags[$queueFile->getFileId()];
$landmarkTags = array_filter($fileTags, function ($tag) {
return in_array($tag->getName(), LandmarksClassifier::PRECONDITION_TAGS);
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/TagManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function assignTags(int $fileId, array $tags): void {

/**
* @param array $fileIds
* @return array
* @return array<array-key, array<array-key,ISystemTag>>
*/
public function getTagsForFiles(array $fileIds): array {
/** @var array<string, string[]> $tagsByFile */
Expand Down

0 comments on commit 6c8da50

Please sign in to comment.