| Conditions | 3 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 16 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | 1 | public function writeXml(XMLArray $XMLArray): void |
|
| 47 | { |
||
| 48 | 1 | $XMLArray->startLoop( |
|
| 49 | 1 | 'starred2', |
|
| 50 | 1 | [], |
|
| 51 | 1 | function (XMLArray $XMLArray): void { |
|
| 52 | 1 | foreach ($this->albums as $album) { |
|
| 53 | 1 | $XMLArray->add( |
|
| 54 | 1 | 'album', |
|
| 55 | 1 | null, |
|
| 56 | 1 | $album |
|
| 57 | 1 | ); |
|
| 58 | } |
||
| 59 | |||
| 60 | 1 | foreach ($this->songs as $song) { |
|
| 61 | 1 | $XMLArray->add( |
|
| 62 | 1 | 'song', |
|
| 63 | 1 | null, |
|
| 64 | 1 | $song |
|
| 65 | 1 | ); |
|
| 84 |