| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public function getArtists( |
||
| 43 | ?string $musicFolderId |
||
| 44 | ): Generator { |
||
| 45 | foreach ($this->artistRepository->findBy([], ['title' => 'ASC']) as $artist) { |
||
| 46 | $artistId = $artist->getId(); |
||
| 47 | |||
| 48 | yield [ |
||
| 49 | 'id' => (string) $artistId, |
||
| 50 | 'name' => (string) $artist->getTitle(), |
||
| 51 | 'artistImageUrl' => '', |
||
| 52 | 'coverArtId' => 'artist-'.$artistId, |
||
| 53 | 'albumCount' => $artist->getAlbumCount(), |
||
| 54 | 'starred' => null, |
||
| 55 | ]; |
||
| 59 |