Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
27 | 1 | public function build(&$parent = null) |
|
28 | { |
||
29 | 1 | if (is_null($this->value)) { |
|
30 | 1 | return null; |
|
31 | } |
||
32 | 1 | if ($this->value instanceof Node) { |
|
33 | 1 | $this->value = new NodeList($this->value); |
|
34 | 1 | $this->value->type = NodeList::SEQUENCE; |
|
35 | } |
||
36 | 1 | return new Compact($this->value->build()); |
|
|
|||
37 | } |
||
38 | } |