Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | 3 | public function appendToDocument(NovaParameterMap $parameterMap) |
|
52 | { |
||
53 | 3 | foreach ($parameterMap->map as $parameterName => $value) { |
|
54 | 3 | if (!$value) { |
|
55 | 3 | continue; |
|
56 | } |
||
57 | |||
58 | 3 | $element = $this->document->createElement("{$this->parameterPrefix}{$parameterName}"); |
|
59 | 3 | $this->parent->appendChild($element); |
|
60 | 3 | $element->appendChild($this->document->createTextNode($value)); |
|
61 | } |
||
64 |