Conditions | 3 |
Paths | 4 |
Total Lines | 22 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 3 | Features | 0 |
1 | <?php |
||
15 | private function largeDocument($n) |
||
16 | { |
||
17 | $doc = new Document(new Str('My Title')); |
||
18 | $html = $doc->getHtml(); |
||
19 | $body = $html->getBody(); |
||
20 | |||
21 | |||
22 | for ($i = 0; $i < $n; $i++) { |
||
23 | $p = new P; |
||
24 | $p->addChild(new Str('test')); |
||
25 | $body->addChild($p); |
||
26 | } |
||
27 | |||
28 | for ($i = 0; $i < $n; $i++) { |
||
29 | $ul = new Ul(); |
||
30 | $li = $ul->addChild(new Li); |
||
31 | $li->addChild(new Str('test')); |
||
32 | $body->addChild($ul); |
||
33 | } |
||
34 | |||
35 | return $doc; |
||
36 | } |
||
37 | |||
52 |