| @@ 1430-1436 (lines=7) @@ | ||
| 1427 | } |
|
| 1428 | ||
| 1429 | foreach ($values as $value) { |
|
| 1430 | if (is_string($value)) { |
|
| 1431 | $type = 'xs:string'; |
|
| 1432 | } elseif (is_int($value)) { |
|
| 1433 | $type = 'xs:integer'; |
|
| 1434 | } else { |
|
| 1435 | $type = null; |
|
| 1436 | } |
|
| 1437 | ||
| 1438 | $attributeValue = $document->createElementNS(Constants::NS_SAML, 'saml:AttributeValue'); |
|
| 1439 | $attribute->appendChild($attributeValue); |
|
| @@ 1487-1493 (lines=7) @@ | ||
| 1484 | } |
|
| 1485 | ||
| 1486 | foreach ($values as $value) { |
|
| 1487 | if (is_string($value)) { |
|
| 1488 | $type = 'xs:string'; |
|
| 1489 | } elseif (is_int($value)) { |
|
| 1490 | $type = 'xs:integer'; |
|
| 1491 | } else { |
|
| 1492 | $type = null; |
|
| 1493 | } |
|
| 1494 | ||
| 1495 | $attributeValue = $document2->createElementNS(Constants::NS_SAML, 'saml:AttributeValue'); |
|
| 1496 | $attribute->appendChild($attributeValue); |
|
| @@ 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) { |
|