Skip to content

Commit

Permalink
fix(files): Adjust Cache::searchQuery() parameter name to match inter…
Browse files Browse the repository at this point in the history
…face

Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Sep 13, 2024
1 parent bcb4e78 commit 714671a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/private/Files/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,8 @@ public function searchByMime($mimetype) {
return $this->searchQuery(new SearchQuery($operator, 0, 0, [], null));
}

public function searchQuery(ISearchQuery $searchQuery) {
return current($this->querySearchHelper->searchInCaches($searchQuery, [$this]));
public function searchQuery(ISearchQuery $query) {
return current($this->querySearchHelper->searchInCaches($query, [$this]));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/private/Files/Cache/Wrapper/CacheWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ public function getStatus($file) {
return $this->getCache()->getStatus($file);
}

public function searchQuery(ISearchQuery $searchQuery) {
return current($this->querySearchHelper->searchInCaches($searchQuery, [$this]));
public function searchQuery(ISearchQuery $query) {
return current($this->querySearchHelper->searchInCaches($query, [$this]));
}

/**
Expand Down

0 comments on commit 714671a

Please sign in to comment.