| @@ 154-160 (lines=7) @@ | ||
| 151 | } |
|
| 152 | ||
| 153 | foreach ($values as $value) { |
|
| 154 | if (is_string($value)) { |
|
| 155 | $type = 'xs:string'; |
|
| 156 | } elseif (is_int($value)) { |
|
| 157 | $type = 'xs:integer'; |
|
| 158 | } else { |
|
| 159 | $type = null; |
|
| 160 | } |
|
| 161 | ||
| 162 | $attributeValue = Utils::addString($attribute, Constants::NS_SAML, 'saml:AttributeValue', $value); |
|
| 163 | if ($type !== null) { |
|
| @@ 1473-1479 (lines=7) @@ | ||
| 1470 | } |
|
| 1471 | ||
| 1472 | foreach ($values as $value) { |
|
| 1473 | if (is_string($value)) { |
|
| 1474 | $type = 'xs:string'; |
|
| 1475 | } elseif (is_int($value)) { |
|
| 1476 | $type = 'xs:integer'; |
|
| 1477 | } else { |
|
| 1478 | $type = null; |
|
| 1479 | } |
|
| 1480 | ||
| 1481 | $attributeValue = $document->createElementNS(Constants::NS_SAML, 'saml:AttributeValue'); |
|
| 1482 | $attribute->appendChild($attributeValue); |
|
| @@ 1530-1536 (lines=7) @@ | ||
| 1527 | } |
|
| 1528 | ||
| 1529 | foreach ($values as $value) { |
|
| 1530 | if (is_string($value)) { |
|
| 1531 | $type = 'xs:string'; |
|
| 1532 | } elseif (is_int($value)) { |
|
| 1533 | $type = 'xs:integer'; |
|
| 1534 | } else { |
|
| 1535 | $type = null; |
|
| 1536 | } |
|
| 1537 | ||
| 1538 | $attributeValue = $document2->createElementNS(Constants::NS_SAML, 'saml:AttributeValue'); |
|
| 1539 | $attribute->appendChild($attributeValue); |
|