Conditions | 3 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
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 | 'starred2', |
||
50 | 1 | [], |
|
51 | 1 | function (XMLArray $XMLArray): void { |
|
52 | 1 | foreach ($this->albums as $album) { |
|
53 | 1 | $XMLArray->add( |
|
54 | 'album', |
||
55 | null, |
||
56 | $album |
||
57 | ); |
||
58 | } |
||
59 | |||
60 | 1 | foreach ($this->songs as $song) { |
|
61 | 1 | $XMLArray->add( |
|
62 | 'song', |
||
63 | null, |
||
64 | $song |
||
65 | ); |
||
84 |