| Conditions | 5 |
| Paths | 5 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 1 | public function handle(int $mediaId, array &$songList): void |
|
| 25 | { |
||
| 26 | 1 | $artist = $this->artistRepository->find($mediaId); |
|
| 27 | 1 | if ($artist !== null) { |
|
| 28 | 1 | foreach ($artist->getAlbums() as $album) { |
|
| 29 | 1 | foreach ($album->getDiscs() as $disc) { |
|
| 30 | 1 | foreach ($disc->getSongs() as $song) { |
|
| 31 | 1 | $songList[] = $song->getId(); |
|
| 32 | } |
||
| 38 |