@@ 107-111 (lines=5) @@ | ||
104 | $context->enableMaxDepthChecks(); |
|
105 | } |
|
106 | ||
107 | if (!empty($this->context['attributes'])) { |
|
108 | foreach ($this->context['attributes'] as $key => $value) { |
|
109 | $context->setAttribute($key, $value); |
|
110 | } |
|
111 | } |
|
112 | ||
113 | if (!empty($this->context['depth'])) { |
|
114 | $contextDepth = (int) $this->context['depth']; |
@@ 670-674 (lines=5) @@ | ||
667 | $this->methodBody->add('%s->enableMaxDepthChecks();', $contextVar); |
|
668 | } |
|
669 | ||
670 | if (!empty($context['attributes'])) { |
|
671 | foreach ($context['attributes'] as $key => $value) { |
|
672 | $this->methodBody->add('%s->setAttribute("%s", "%s");', $contextVar, $key, $value); |
|
673 | } |
|
674 | } |
|
675 | } |
|
676 | ||
677 | /** |