Skip to content

Commit

Permalink
Add a few more annotations to help Scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
paulijar committed Dec 28, 2024
1 parent e3934b9 commit 3a30a9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Db/ArtistMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public function findAllHavingTracks(string $userId, int $sortBy=SortBy::Name,
$condition, $userId, $sortBy, $limit, $offset, $name, $matchMode, $createdMin, $createdMax, $updatedMin, $updatedMax);
}

/**
* @return Artist[]
*/
private function findAllWithCondition(
string $condition, string $userId, int $sortBy, ?int $limit, ?int $offset,
?string $name, int $matchMode, ?string $createdMin, ?string $createdMax,
Expand Down
2 changes: 2 additions & 0 deletions lib/Db/TrackMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
use OCP\IDBConnection;

/**
* @method Track findEntity(string $sql, array $params)
* @method Track[] findEntities(string $sql, array $params, ?int $limit=null, ?int $offset=null)
* @phpstan-extends BaseMapper<Track>
*/
class TrackMapper extends BaseMapper {
Expand Down

0 comments on commit 3a30a9d

Please sign in to comment.