| @@ 92-99 (lines=8) @@ | ||
| 89 | return function () use ($schema, $node, $attGroup) { |
|
| 90 | foreach ($node->childNodes as $childNode) { |
|
| 91 | switch ($childNode->localName) { |
|
| 92 | case 'attribute': |
|
| 93 | if ($childNode->hasAttribute("ref")) { |
|
| 94 | /** |
|
| 95 | * @var AttributeItem $attribute |
|
| 96 | */ |
|
| 97 | $attribute = $this->findSomething('findAttribute', $schema, $node, $childNode->getAttribute("ref")); |
|
| 98 | } else { |
|
| 99 | /** |
|
| 100 | * @var Attribute $attribute |
|
| 101 | */ |
|
| 102 | $attribute = $this->loadAttribute($schema, $childNode); |
|
| @@ 647-654 (lines=8) @@ | ||
| 644 | } |
|
| 645 | $this->loadSequence($type, $childNode); |
|
| 646 | break; |
|
| 647 | case 'attribute': |
|
| 648 | if ($childNode->hasAttribute("ref")) { |
|
| 649 | /** |
|
| 650 | * @var AttributeItem $attribute |
|
| 651 | */ |
|
| 652 | $attribute = $this->findSomething('findAttribute', $type->getSchema(), $node, $childNode->getAttribute("ref")); |
|
| 653 | } else { |
|
| 654 | /** |
|
| 655 | * @var Attribute $attribute |
|
| 656 | */ |
|
| 657 | $attribute = $this->loadAttribute($type->getSchema(), $childNode); |
|