Skip to content

Commit

Permalink
fix psalm
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Nov 6, 2023
1 parent 2fc9ba3 commit 01348cb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/private/Files/Cache/QuerySearchHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function searchInCaches(ISearchQuery $searchQuery, array $caches): array
$files = $result->fetchAll();

$rawEntries = array_map(function (array $data) use ($metadataQuery) {
$data['metadata'] = $metadataQuery->extractMetadata($data)?->asArray() ?? [];
$data['metadata'] = $metadataQuery->extractMetadata($data)->asArray();
return Cache::cacheEntryFromData($data, $this->mimetypeLoader);
}, $files);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function store(IFilesMetadata $filesMetadata): void {
->setValue('file_id', $qb->createNamedParameter($filesMetadata->getFileId(), IQueryBuilder::PARAM_INT))
->setValue('json', $qb->createNamedParameter(json_encode($filesMetadata->jsonSerialize())))
->setValue('sync_token', $qb->createNamedParameter($this->generateSyncToken()))
->setValue('last_update', $qb->createFunction('NOW()'));
->setValue(column: 'last_update', value: $qb->createFunction('NOW()'));
$qb->executeStatement();
}

Expand Down
1 change: 1 addition & 0 deletions lib/public/FilesMetadata/IFilesMetadataManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public function getKnownMetadata(): IFilesMetadata;
*
* @param string $key metadata key
* @param string $type metadata type
* @since 28.0.0
*/
public function initMetadataIndex(string $key, string $type): void;
}
1 change: 0 additions & 1 deletion lib/public/FilesMetadata/Model/IMetadataQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,4 @@ public function getMetadataKeyField(string $metadataKey): string;
* @since 28.0.0
*/
public function getMetadataValueField(string $metadataKey): string;

}

0 comments on commit 01348cb

Please sign in to comment.