@@ 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']; |
@@ 677-681 (lines=5) @@ | ||
674 | $this->methodBody->add('%s->enableMaxDepthChecks();', $contextVar); |
|
675 | } |
|
676 | ||
677 | if (!empty($context['attributes'])) { |
|
678 | foreach ($context['attributes'] as $key => $value) { |
|
679 | $this->methodBody->add('%s->setAttribute("%s", "%s");', $contextVar, $key, $value); |
|
680 | } |
|
681 | } |
|
682 | } |
|
683 | ||
684 | /** |