Skip to content

Commit 354e774

Browse files
committed
Fix codesniffer issues
1 parent 88a0b94 commit 354e774

File tree

323 files changed

+3842
-1761
lines changed

Some content is hidden

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

323 files changed

+3842
-1761
lines changed

phpstan-baseline-dev.neon

Lines changed: 1047 additions & 189 deletions
Large diffs are not rendered by default.

phpstan-baseline.neon

Lines changed: 209 additions & 57 deletions
Large diffs are not rendered by default.

src/Assert/SAMLAnyURITrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ trait SAMLAnyURITrait
1414
{
1515
private static string $scheme_regex = '/^([a-z][a-z0-9\+\-\.]+[:])/i';
1616

17+
1718
/**
1819
* @param string $value
1920
* @param string $message

src/Assertion/Validation/ConstraintValidator/SubjectConfirmationRecipientMatches.php

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

55
namespace SimpleSAML\SAML2\Assertion\Validation\ConstraintValidator;
66

7-
use SimpleSAML\SAML2\Assertion\Validation\{Result, SubjectConfirmationConstraintValidator};
7+
use SimpleSAML\SAML2\Assertion\Validation\Result;
8+
use SimpleSAML\SAML2\Assertion\Validation\SubjectConfirmationConstraintValidator;
89
use SimpleSAML\SAML2\Configuration\Destination;
910
use SimpleSAML\SAML2\XML\saml\SubjectConfirmation;
1011

src/Assertion/Validation/ConstraintValidator/SubjectConfirmationResponseToMatches.php

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

55
namespace SimpleSAML\SAML2\Assertion\Validation\ConstraintValidator;
66

7-
use SimpleSAML\SAML2\Assertion\Validation\{Result, SubjectConfirmationConstraintValidator};
7+
use SimpleSAML\SAML2\Assertion\Validation\Result;
8+
use SimpleSAML\SAML2\Assertion\Validation\SubjectConfirmationConstraintValidator;
89
use SimpleSAML\SAML2\XML\saml\SubjectConfirmation;
910
use SimpleSAML\SAML2\XML\samlp\Response;
1011

src/Binding/SOAP.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,22 @@
66

77
use Exception;
88
use Nyholm\Psr7\Response;
9-
use Psr\Http\Message\{ResponseInterface, ServerRequestInterface};
9+
use Psr\Http\Message\ResponseInterface;
10+
use Psr\Http\Message\ServerRequestInterface;
1011
use SimpleSAML\SAML2\Binding;
1112
use SimpleSAML\SAML2\Exception\Protocol\UnsupportedBindingException;
1213
use SimpleSAML\SAML2\Type\SAMLAnyURIValue;
1314
use SimpleSAML\SAML2\Utils;
14-
use SimpleSAML\SAML2\XML\ecp\{RequestAuthenticated, Response as ECPResponse};
15+
use SimpleSAML\SAML2\XML\ecp\RequestAuthenticated;
16+
use SimpleSAML\SAML2\XML\ecp\Response as ECPResponse;
1517
use SimpleSAML\SAML2\XML\samlp\AbstractMessage;
1618
use SimpleSAML\SAML2\XML\samlp\MessageFactory;
1719
use SimpleSAML\SAML2\XML\samlp\Response as SAML2_Response;
1820
use SimpleSAML\SOAP11\Type\MustUnderstandValue;
1921
use SimpleSAML\SOAP11\Utils\XPath;
20-
use SimpleSAML\SOAP11\XML\{Body, Envelope, Header};
22+
use SimpleSAML\SOAP11\XML\Body;
23+
use SimpleSAML\SOAP11\XML\Envelope;
24+
use SimpleSAML\SOAP11\XML\Header;
2125
use SimpleSAML\XML\DOMDocumentFactory;
2226

2327
use function file_get_contents;

src/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\SAML2\Assert\Assert;
1010
use SimpleSAML\SAML2\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/SOAPClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
use SimpleSAML\SAML2\XML\samlp\AbstractMessage;
1212
use SimpleSAML\SAML2\XML\samlp\MessageFactory;
1313
use SimpleSAML\SOAP11\Utils\XPath;
14-
use SimpleSAML\SOAP11\XML\{Body, Envelope, Fault};
14+
use SimpleSAML\SOAP11\XML\Body;
15+
use SimpleSAML\SOAP11\XML\Envelope;
16+
use SimpleSAML\SOAP11\XML\Fault;
1517
use SimpleSAML\Utils\Config;
1618
use SimpleSAML\Utils\Crypto;
1719
use SimpleSAML\XML\Chunk;

src/Type/EntityIDValue.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class EntityIDValue extends SAMLAnyURIValue
2323
/** @var string */
2424
public const SCHEMA_NAMESPACE_PREFIX = AbstractMdElement::NS_PREFIX;
2525

26+
2627
/**
2728
* Validate the value.
2829
*

src/XML/EncryptedElementTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
use SimpleSAML\SAML2\Compat\ContainerSingleton;
1010
use SimpleSAML\SAML2\Exception\ProtocolViolationException;
1111
use SimpleSAML\XML\AbstractElement;
12-
use SimpleSAML\XMLSchema\Exception\{InvalidDOMElementException, TooManyElementsException};
12+
use SimpleSAML\XMLSchema\Exception\InvalidDOMElementException;
13+
use SimpleSAML\XMLSchema\Exception\TooManyElementsException;
1314
use SimpleSAML\XMLSecurity\Backend\EncryptionBackend;
1415
use SimpleSAML\XMLSecurity\Constants as C;
1516
use SimpleSAML\XMLSecurity\XML\EncryptedElementTrait as ParentEncryptedElementTrait;

0 commit comments

Comments
 (0)