| Conditions | 4 |
| Paths | 6 |
| Total Lines | 24 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | */ |
||
| 23 | protected function normalizeAttribute(DOMAttr $attribute) |
||
| 24 | { |
||
| 25 | $attrName = $this->lowercase($attribute->localName); |
||
| 26 | if ($attrName !== $attribute->localName) |
||
| 27 | { |
||
| 28 | $attribute->parentNode->setAttribute($attrName, $attribute->value); |
||
| 29 | $attribute->parentNode->removeAttributeNode($attribute); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | protected function normalizeElement(DOMElement $element) |
||
| 37 | { |
||
| 38 | $element->setAttribute('name', $this->lowercase($element->getAttribute('name'))); |
||
| 39 | } |
||
| 40 | } |