Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
57 | 3 | private function serializeChild(\stdClass $serialized, $name, AbstractNode $child) |
|
58 | { |
||
59 | 3 | if (null !== $serializedChild = $child->serialize()) { |
|
60 | 1 | $serialized->$name = $serializedChild; |
|
61 | 3 | } elseif ($this->allowDefault[$name]) { |
|
62 | 1 | $serialized->$name = $child->getDefault(); |
|
63 | 1 | } |
|
64 | 3 | } |
|
65 | } |
||
66 |