Skip to content

Commit

Permalink
Add trailing comma's
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jun 14, 2024
1 parent 5b64c13 commit 3b87b57
Show file tree
Hide file tree
Showing 94 changed files with 107 additions and 107 deletions.
2 changes: 1 addition & 1 deletion src/XML/auth/AbstractConstrainedManyValueType.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ abstract class AbstractConstrainedManyValueType extends AbstractAuthElement
*/
final public function __construct(
protected array $value = [],
protected array $structuredValue = []
protected array $structuredValue = [],
) {
Assert::oneOf(
[],
Expand Down
2 changes: 1 addition & 1 deletion src/XML/auth/AbstractConstrainedSingleValueType.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ abstract class AbstractConstrainedSingleValueType extends AbstractAuthElement
*/
final public function __construct(
protected ?Value $value = null,
protected ?StructuredValue $structuredValue = null
protected ?StructuredValue $structuredValue = null,
) {
Assert::oneOf(
null,
Expand Down
2 changes: 1 addition & 1 deletion src/XML/auth/AbstractConstrainedValueType.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ abstract class AbstractConstrainedValueType extends AbstractAuthElement
final public function __construct(
protected ValueLessThan|ValueLessThanOrEqual|ValueGreaterThan|ValueGreaterThanOrEqual|ValueInRangen|ValueOneOf $value,
array $children = [],
protected ?bool $assertConstraint = null
protected ?bool $assertConstraint = null,
) {
$this->setElements($children);
}
Expand Down
2 changes: 1 addition & 1 deletion src/XML/auth/AbstractEncryptedValueType.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ abstract class AbstractEncryptedValueType extends AbstractAuthElement
*/
final public function __construct(
protected EncryptedData $encryptedData,
protected ?string $descriptionCondition = null
protected ?string $descriptionCondition = null,
) {
Assert::nullOrValidURI($descriptionCondition, SchemaViolationException::class);
}
Expand Down
2 changes: 1 addition & 1 deletion src/XML/auth/AbstractStructuredValueType.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract class AbstractStructuredValueType extends AbstractAuthElement
*/
final public function __construct(
array $children = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
// Next one is debatable since the schema allows an empty element, but that makes zero sense
Assert::allNotEmpty([$children, $namespacedAttributes]);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/auth/AbstractValueInRangeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ abstract class AbstractValueInRangeType extends AbstractAuthElement
*/
final public function __construct(
protected ValueUpperBound $valueUpperBound,
protected ValueLowerBound $valueLowerBound
protected ValueLowerBound $valueLowerBound,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractAssertionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract class AbstractAssertionType extends AbstractFedElement
*/
final public function __construct(
array $children = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setElements($children);
$this->setAttributesNS($namespacedAttributes);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractClaimDialectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class AbstractClaimDialectType extends AbstractFedElement
final public function __construct(
protected ?string $Uri = null,
array $children = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
Assert::nullOrValidURI($Uri, SchemaViolationException::class);
// Next one is debatable since the schema allows an empty element, but that makes zero sense
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractClaimDialectsOfferedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class AbstractClaimDialectsOfferedType extends AbstractFedElement
*/
final public function __construct(
protected array $claimDialect,
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
Assert::notEmpty($claimDialect, SchemaViolationException::class);
Assert::allIsInstanceOf($claimDialect, ClaimDialect::class);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractClaimTypesOfferedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class AbstractClaimTypesOfferedType extends AbstractFedElement
*/
final public function __construct(
protected array $claimType,
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
Assert::notEmpty($claimType, SchemaViolationException::class);
Assert::allIsInstanceOf($claimType, ClaimType::class);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractClaimTypesRequestedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class AbstractClaimTypesRequestedType extends AbstractFedElement
*/
final public function __construct(
protected array $claimType,
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
Assert::notEmpty($claimType, SchemaViolationException::class);
Assert::allIsInstanceOf($claimType, ClaimType::class);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractClientPseudonymType.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ final public function __construct(
protected ?DisplayName $displayName = null,
protected ?EMail $email = null,
array $children = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setElements($children);
$this->setAttributesNS($namespacedAttributes);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractFederationMetadataHandlerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ abstract class AbstractFederationMetadataHandlerType extends AbstractFedElement
* @param \SimpleSAML\XML\Attribute[] $namespacedAttributes
*/
final public function __construct(
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setAttributesNS($namespacedAttributes);
}
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractFederationMetadataType.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class AbstractFederationMetadataType extends AbstractFedElement
final public function __construct(
protected array $federation = [],
array $children = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
Assert::minCount($federation, 1, SchemaViolationException::class);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractFederationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class AbstractFederationType extends AbstractFedElement
final public function __construct(
protected ?string $FederationID = null,
array $children = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
Assert::nullOrValidURI($FederationID, SchemaViolationException::class);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractFreshnessType.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class AbstractFreshnessType extends AbstractFedElement
final public function __construct(
int $content,
protected ?bool $AllowCache = null,
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setContent(strval($content));
$this->setAttributesNS($namespacedAttributes);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractIssuerNameType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract class AbstractIssuerNameType extends AbstractFedElement
*/
final public function __construct(
protected string $Uri,
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
Assert::validURI($Uri, SchemaViolationException::class);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractLogicalServiceNamesOfferedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class AbstractLogicalServiceNamesOfferedType extends AbstractFedElement
*/
final public function __construct(
protected array $issuerName,
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
Assert::notEmpty($issuerName, SchemaViolationException::class);
Assert::allIsInstanceOf($issuerName, IssuerName::class);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractProofTokenType.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ abstract class AbstractProofTokenType extends AbstractFedElement
*/
final public function __construct(
protected SerializableElementinterface $child,
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setElements([$child]);
$this->setAttributesNS($namespacedAttributes);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractPseudonymBasisType.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class AbstractPseudonymBasisType extends AbstractFedElement
*/
final public function __construct(
SerializableElementInterface $child,
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setElements([$child]);
$this->setAttributesNS($namespacedAttributes);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractRelativeToType.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract class AbstractRelativeToType extends AbstractFedElement
*/
final public function __construct(
array $children = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setElements($children);
$this->setAttributesNS($namespacedAttributes);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractRequestProofTokenType.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract class AbstractRequestProofTokenType extends AbstractFedElement
*/
final public function __construct(
array $children = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setElements($children);
$this->setAttributesNS($namespacedAttributes);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractRequestPseudonymType.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ final public function __construct(
protected ?bool $SingleUse = null,
protected ?bool $Lookup = null,
array $children = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setElements($children);
$this->setAttributesNS($namespacedAttributes);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractSecurityTokenType.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ abstract class AbstractSecurityTokenType extends AbstractFedElement
*/
final public function __construct(
protected SerializableElementinterface $child,
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setElements([$child]);
$this->setAttributesNS($namespacedAttributes);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractTokenType.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class AbstractTokenType extends AbstractFedElement
final public function __construct(
protected ?string $Uri = null,
array $children = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
Assert::nullOrValidURI($Uri, SchemaViolationException::class);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/fed/AbstractTokenTypesOfferedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ abstract class AbstractTokenTypesOfferedType extends AbstractFedElement
final public function __construct(
protected array $tokenType,
array $children = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
Assert::notEmpty($tokenType, SchemaViolationException::class);
Assert::allIsInstanceOf($tokenType, TokenType::class);
Expand Down
2 changes: 1 addition & 1 deletion src/XML/sp/AbstractEmptyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function fromXML(DOMElement $xml): static
$xml->localName,
$qualifiedName,
sprintf('Unexpected name for EmptyType: %s. Expected: %s.', $xml->localName, $qualifiedName),
InvalidDOMElementException::class
InvalidDOMElementException::class,
);


Expand Down
4 changes: 2 additions & 2 deletions src/XML/sp/AbstractHeaderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ abstract class AbstractHeaderType extends AbstractSpElement
final public function __construct(
protected string $namespace,
protected ?string $name = null,
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
Assert::validURI($namespace);
Assert::nullOrValidQName($name);
Expand Down Expand Up @@ -84,7 +84,7 @@ public static function fromXML(DOMElement $xml): static
$xml->localName,
$qualifiedName,
sprintf('Unexpected name for HeaderType: %s. Expected: %s.', $xml->localName, $qualifiedName),
InvalidDOMElementException::class
InvalidDOMElementException::class,
);

$namespacedAttributes = self::getAttributesNSFromXML($xml);
Expand Down
4 changes: 2 additions & 2 deletions src/XML/sp/AbstractIssuedTokenType.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ final public function __construct(
protected Issuer|IssuerName|null $issuer,
?IncludeToken $includeToken = null,
array $elts = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setIncludeToken($includeToken);
$this->setElements($elts);
Expand Down Expand Up @@ -99,7 +99,7 @@ public static function fromXML(DOMElement $xml): static
$xml->localName,
$qualifiedName,
sprintf('Unexpected name for IssuedTokenType: %s. Expected: %s.', $xml->localName, $qualifiedName),
InvalidDOMElementException::class
InvalidDOMElementException::class,
);

$issuer = Issuer::getChildrenOfClass($xml);
Expand Down
4 changes: 2 additions & 2 deletions src/XML/sp/AbstractKeyValueTokenType.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ abstract class AbstractKeyValueTokenType extends AbstractSpElement
final public function __construct(
?IncludeToken $includeToken = null,
array $elts = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setIncludeToken($includeToken);
$this->setElements($elts);
Expand Down Expand Up @@ -83,7 +83,7 @@ public static function fromXML(DOMElement $xml): static
$xml->localName,
$qualifiedName,
sprintf('Unexpected name for KeyValueTokenType: %s. Expected: %s.', $xml->localName, $qualifiedName),
InvalidDOMElementException::class
InvalidDOMElementException::class,
);

try {
Expand Down
4 changes: 2 additions & 2 deletions src/XML/sp/AbstractQNameAssertionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ abstract class AbstractQNameAssertionType extends AbstractSpElement
* @param list<\SimpleSAML\XML\Attribute> $namespacedAttributes
*/
final public function __construct(
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setAttributesNS($namespacedAttributes);
}
Expand All @@ -55,7 +55,7 @@ public static function fromXML(DOMElement $xml): static
$xml->localName,
$qualifiedName,
sprintf('Unexpected name for QNameAssertion: %s. Expected: %s.', $xml->localName, $qualifiedName),
InvalidDOMElementException::class
InvalidDOMElementException::class,
);


Expand Down
4 changes: 2 additions & 2 deletions src/XML/sp/AbstractReqPartsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ abstract class AbstractReqPartsType extends AbstractSpElement
final public function __construct(
protected array $header = [],
array $details = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setElements($details);
$this->setAttributesNS($namespacedAttributes);
Expand Down Expand Up @@ -91,7 +91,7 @@ public static function fromXML(DOMElement $xml): static
$xml->localName,
$qualifiedName,
sprintf('Unexpected name for Empty: %s. Expected: %s.', $xml->localName, $qualifiedName),
InvalidDOMElementException::class
InvalidDOMElementException::class,
);

$header = Header::getChildrenOfClass($xml);
Expand Down
4 changes: 2 additions & 2 deletions src/XML/sp/AbstractRequestSecurityTokenTemplateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ abstract class AbstractRequestSecurityTokenTemplateType extends AbstractSpElemen
final public function __construct(
protected ?string $trustVersion = null,
array $elts = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
Assert::nullOrValidURI($trustVersion);

Expand Down Expand Up @@ -94,7 +94,7 @@ public static function fromXML(DOMElement $xml): static
$xml->localName,
$qualifiedName,
),
InvalidDOMElementException::class
InvalidDOMElementException::class,
);

$elements = [];
Expand Down
4 changes: 2 additions & 2 deletions src/XML/sp/AbstractSePartsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ final public function __construct(
protected array $header = [],
protected ?Attachments $attachments = null,
array $details = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setElements($details);
$this->setAttributesNS($namespacedAttributes);
Expand Down Expand Up @@ -120,7 +120,7 @@ public static function fromXML(DOMElement $xml): static
$xml->localName,
$qualifiedName,
sprintf('Unexpected name for Empty: %s. Expected: %s.', $xml->localName, $qualifiedName),
InvalidDOMElementException::class
InvalidDOMElementException::class,
);

$body = Body::getChildrenOfClass($xml);
Expand Down
4 changes: 2 additions & 2 deletions src/XML/sp/AbstractSecureConversationTokenType.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ final public function __construct(
protected Issuer|IssuerName|null $issuer,
?IncludeToken $includeToken = null,
array $elts = [],
array $namespacedAttributes = []
array $namespacedAttributes = [],
) {
$this->setIncludeToken($includeToken);
$this->setElements($elts);
Expand Down Expand Up @@ -98,7 +98,7 @@ public static function fromXML(DOMElement $xml): static
$xml->localName,
$qualifiedName,
sprintf('Unexpected name for IssuedTokenType: %s. Expected: %s.', $xml->localName, $qualifiedName),
InvalidDOMElementException::class
InvalidDOMElementException::class,
);

$issuer = Issuer::getChildrenOfClass($xml);
Expand Down
Loading

0 comments on commit 3b87b57

Please sign in to comment.