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