| @@ 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']; |
|
| @@ 664-668 (lines=5) @@ | ||
| 661 | $this->methodBody->add('%s->enableMaxDepthChecks();', $contextVar); |
|
| 662 | } |
|
| 663 | ||
| 664 | if (!empty($context['attributes'])) { |
|
| 665 | foreach ($context['attributes'] as $key => $value) { |
|
| 666 | $this->methodBody->add('%s->setAttribute("%s", "%s");', $contextVar, $key, $value); |
|
| 667 | } |
|
| 668 | } |
|
| 669 | } |
|
| 670 | ||
| 671 | /** |
|