| Conditions | 3 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 1 | public function writeXml(XMLArray $XMLArray): void |
|
| 34 | { |
||
| 35 | 1 | $XMLArray->startLoop( |
|
| 36 | 1 | 'artists', |
|
| 37 | 1 | ['ignoredArticles' => $this->artistList['ignoredArticles']], |
|
| 38 | 1 | function (XMLArray $XMLArray): void { |
|
| 39 | 1 | foreach ($this->artistList['index'] as $indexItem) { |
|
| 40 | 1 | $XMLArray->startLoop( |
|
| 41 | 1 | 'index', |
|
| 42 | 1 | ['name' => $indexItem['name']], |
|
| 43 | 1 | static function (XMLArray $XMLArray) use ($indexItem): void { |
|
| 44 | 1 | foreach ($indexItem['artist'] as $artist) { |
|
| 45 | 1 | $XMLArray->add( |
|
| 46 | 1 | 'artist', |
|
| 47 | 1 | null, |
|
| 48 | 1 | $artist |
|
| 49 | 1 | ); |
|
| 68 |