Skip to content

Commit 1aca3ef

Browse files
committed
Remove multinamespace
1 parent fef9354 commit 1aca3ef

114 files changed

Lines changed: 941 additions & 683 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/SAML11/Compat/AbstractContainer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
use Psr\Log\LoggerInterface;
99
use SimpleSAML\SAML11\Assert\Assert;
1010
use SimpleSAML\SAML11\XML\ExtensionPointInterface;
11-
use SimpleSAML\XML\{AbstractElement, ElementInterface};
11+
use SimpleSAML\XML\AbstractElement;
12+
use SimpleSAML\XML\ElementInterface;
1213
use SimpleSAML\XMLSchema\Type\QNameValue;
1314
use SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmFactory;
1415
use SimpleSAML\XMLSecurity\Alg\KeyTransport\KeyTransportAlgorithmFactory;

src/SAML11/Constants.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ class Constants extends \SimpleSAML\XMLSecurity\Constants
178178
*/
179179
public const STATUS_VERSION_MISMATCH = 'samlp:VersionMismatch';
180180

181+
181182
/** @var string[] */
182183
public static array $STATUS_CODES = [
183184
self::STATUS_REQUEST_DENIED,

src/SAML11/XML/ExtensionPointInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
namespace SimpleSAML\SAML11\XML;
66

7-
use SimpleSAML\XMLSchema\Type\{AnyURIValue, NCNameValue, QNameValue};
7+
use SimpleSAML\XMLSchema\Type\AnyURIValue;
8+
use SimpleSAML\XMLSchema\Type\NCNameValue;
9+
use SimpleSAML\XMLSchema\Type\QNameValue;
810

911
/**
1012
* Interface for several extension points objects.

src/SAML11/XML/ExtensionPointTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
use RuntimeException;
88
use SimpleSAML\SAML11\Assert\Assert;
9-
use SimpleSAML\XMLSchema\Type\{AnyURIValue, NCNameValue, QNameValue};
9+
use SimpleSAML\XMLSchema\Type\AnyURIValue;
10+
use SimpleSAML\XMLSchema\Type\NCNameValue;
11+
use SimpleSAML\XMLSchema\Type\QNameValue;
1012

1113
use function constant;
1214
use function defined;

src/SAML11/XML/SignableElementTrait.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
use SimpleSAML\Assert\Assert;
99
use SimpleSAML\SAML11\Compat\ContainerSingleton;
1010
use SimpleSAML\XML\DOMDocumentFactory;
11-
use SimpleSAML\XMLSchema\Type\{AnyURIValue, Base64BinaryValue};
11+
use SimpleSAML\XMLSchema\Type\AnyURIValue;
12+
use SimpleSAML\XMLSchema\Type\Base64BinaryValue;
1213
use SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmInterface;
1314
use SimpleSAML\XMLSecurity\Constants as C;
14-
use SimpleSAML\XMLSecurity\Exception\{RuntimeException, UnsupportedAlgorithmException};
15+
use SimpleSAML\XMLSecurity\Exception\RuntimeException;
16+
use SimpleSAML\XMLSecurity\Exception\UnsupportedAlgorithmException;
1517
use SimpleSAML\XMLSecurity\Utils\XML;
16-
use SimpleSAML\XMLSecurity\XML\ds\{
17-
CanonicalizationMethod,
18-
KeyInfo,
19-
Signature,
20-
SignatureMethod,
21-
SignatureValue,
22-
SignedInfo,
23-
Transform,
24-
Transforms,
25-
};
18+
use SimpleSAML\XMLSecurity\XML\ds\CanonicalizationMethod;
19+
use SimpleSAML\XMLSecurity\XML\ds\KeyInfo;
20+
use SimpleSAML\XMLSecurity\XML\ds\Signature;
21+
use SimpleSAML\XMLSecurity\XML\ds\SignatureMethod;
22+
use SimpleSAML\XMLSecurity\XML\ds\SignatureValue;
23+
use SimpleSAML\XMLSecurity\XML\ds\SignedInfo;
24+
use SimpleSAML\XMLSecurity\XML\ds\Transform;
25+
use SimpleSAML\XMLSecurity\XML\ds\Transforms;
2626
use SimpleSAML\XMLSecurity\XML\SignableElementTrait as BaseSignableElementTrait;
2727

2828
use function base64_encode;

src/SAML11/XML/saml/AbstractActionType.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
9-
use SimpleSAML\SAML11\Type\{SAMLAnyURIValue, SAMLStringValue};
10-
use SimpleSAML\XMLSchema\Exception\{InvalidDOMElementException, SchemaViolationException};
9+
use SimpleSAML\SAML11\Type\SAMLAnyURIValue;
10+
use SimpleSAML\SAML11\Type\SAMLStringValue;
11+
use SimpleSAML\XMLSchema\Exception\InvalidDOMElementException;
1112

1213
use function strval;
1314

src/SAML11/XML/saml/AbstractAdviceType.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
use SimpleSAML\SAML11\Constants as C;
1010
use SimpleSAML\XML\Chunk;
1111
use SimpleSAML\XML\ExtendableElementTrait;
12-
use SimpleSAML\XMLSchema\Exception\{InvalidDOMElementException, SchemaViolationException};
13-
use SimpleSAML\XMLSchema\XML\Enumeration\NamespaceEnum;
12+
use SimpleSAML\XMLSchema\Exception\InvalidDOMElementException;
13+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
14+
use SimpleSAML\XMLSchema\XML\Constants\NS;
1415

1516
/**
1617
* SAML AdviceType abstract data type.
@@ -21,8 +22,9 @@ abstract class AbstractAdviceType extends AbstractSamlElement
2122
{
2223
use ExtendableElementTrait;
2324

25+
2426
/** The namespace-attribute for the xs:any element */
25-
public const XS_ANY_ELT_NAMESPACE = NamespaceEnum::Other;
27+
public const XS_ANY_ELT_NAMESPACE = NS::OTHER;
2628

2729

2830
/**

src/SAML11/XML/saml/AbstractAssertionType.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@
99
use SimpleSAML\SAML11\Compat\ContainerSingleton;
1010
use SimpleSAML\SAML11\Constants as C;
1111
use SimpleSAML\SAML11\Exception\VersionMismatchException;
12+
use SimpleSAML\SAML11\Type\SAMLDateTimeValue;
13+
use SimpleSAML\SAML11\Type\SAMLStringValue;
1214
use SimpleSAML\SAML11\Utils\XPath;
13-
use SimpleSAML\SAML11\Type\{SAMLDateTimeValue, SAMLStringValue};
14-
use SimpleSAML\XMLSchema\Exception\{
15-
InvalidDOMElementException,
16-
MissingElementException,
17-
SchemaViolationException,
18-
TooManyElementsException,
19-
};
20-
use SimpleSAML\XMLSchema\Type\{IDValue, NonNegativeIntegerValue};
15+
use SimpleSAML\XMLSchema\Exception\InvalidDOMElementException;
16+
use SimpleSAML\XMLSchema\Exception\MissingElementException;
17+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
18+
use SimpleSAML\XMLSchema\Exception\TooManyElementsException;
19+
use SimpleSAML\XMLSchema\Type\IDValue;
20+
use SimpleSAML\XMLSchema\Type\NonNegativeIntegerValue;
2121
use SimpleSAML\XMLSecurity\XML\ds\Signature;
22-
use SimpleSAML\XMLSecurity\XML\{SignableElementInterface, SignableElementTrait};
23-
use SimpleSAML\XMLSecurity\XML\{SignedElementInterface, SignedElementTrait};
22+
use SimpleSAML\XMLSecurity\XML\SignableElementInterface;
23+
use SimpleSAML\XMLSecurity\XML\SignableElementTrait;
24+
use SimpleSAML\XMLSecurity\XML\SignedElementInterface;
25+
use SimpleSAML\XMLSecurity\XML\SignedElementTrait;
2426

2527
use function array_filter;
2628
use function array_merge;

src/SAML11/XML/saml/AbstractAttributeDesignatorType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
namespace SimpleSAML\SAML11\XML\saml;
66

77
use DOMElement;
8-
use SimpleSAML\SAML11\Type\{SAMLAnyURIValue, SAMLStringValue};
8+
use SimpleSAML\SAML11\Type\SAMLAnyURIValue;
9+
use SimpleSAML\SAML11\Type\SAMLStringValue;
910

1011
use function strval;
1112

src/SAML11/XML/saml/AbstractAttributeStatementType.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66

77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
9-
use SimpleSAML\XMLSchema\Exception\{
10-
InvalidDOMElementException,
11-
MissingElementException,
12-
SchemaViolationException,
13-
TooManyElementsException,
14-
};
9+
use SimpleSAML\XMLSchema\Exception\InvalidDOMElementException;
10+
use SimpleSAML\XMLSchema\Exception\MissingElementException;
11+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
12+
use SimpleSAML\XMLSchema\Exception\TooManyElementsException;
1513

1614
/**
1715
* SAML AttributeStatementType abstract data type.

0 commit comments

Comments
 (0)