Skip to content

Commit

Permalink
Bump php-cs-fixer to version 3.60 (#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse authored Jul 30, 2024
1 parent e850ee1 commit 8e7179b
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Changed

- Enable compiler optimization for the `sprintf` function.

## 2.3.1

### Changed
Expand Down
4 changes: 2 additions & 2 deletions src/Input/ChangeResourceRecordSetsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->hostedZoneId) {
throw new InvalidArgument(sprintf('Missing parameter "HostedZoneId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "HostedZoneId" for "%s". The value cannot be null.', __CLASS__));
}
$v = preg_replace('#^(/hostedzone/|/change/|/delegationset/)#', '', $v);
$uri['Id'] = $v;
Expand Down Expand Up @@ -118,7 +118,7 @@ public function setHostedZoneId(?string $value): self
private function requestBody(\DOMNode $node, \DOMDocument $document): void
{
if (null === $v = $this->changeBatch) {
throw new InvalidArgument(sprintf('Missing parameter "ChangeBatch" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "ChangeBatch" for "%s". The value cannot be null.', __CLASS__));
}

$node->appendChild($child = $document->createElement('ChangeBatch'));
Expand Down
4 changes: 2 additions & 2 deletions src/Input/CreateHostedZoneRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function setVpc(?VPC $value): self
private function requestBody(\DOMNode $node, \DOMDocument $document): void
{
if (null === $v = $this->name) {
throw new InvalidArgument(sprintf('Missing parameter "Name" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Name" for "%s". The value cannot be null.', __CLASS__));
}
$node->appendChild($document->createElement('Name', $v));
if (null !== $v = $this->vpc) {
Expand All @@ -218,7 +218,7 @@ private function requestBody(\DOMNode $node, \DOMDocument $document): void
$v->requestBody($child, $document);
}
if (null === $v = $this->callerReference) {
throw new InvalidArgument(sprintf('Missing parameter "CallerReference" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "CallerReference" for "%s". The value cannot be null.', __CLASS__));
}
$node->appendChild($document->createElement('CallerReference', $v));
if (null !== $v = $this->hostedZoneConfig) {
Expand Down
2 changes: 1 addition & 1 deletion src/Input/DeleteHostedZoneRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->id) {
throw new InvalidArgument(sprintf('Missing parameter "Id" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Id" for "%s". The value cannot be null.', __CLASS__));
}
$v = preg_replace('#^(/hostedzone/|/change/|/delegationset/)#', '', $v);
$uri['Id'] = $v;
Expand Down
2 changes: 1 addition & 1 deletion src/Input/GetChangeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->id) {
throw new InvalidArgument(sprintf('Missing parameter "Id" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Id" for "%s". The value cannot be null.', __CLASS__));
}
$v = preg_replace('#^(/hostedzone/|/change/|/delegationset/)#', '', $v);
$uri['Id'] = $v;
Expand Down
2 changes: 1 addition & 1 deletion src/Input/ListHostedZonesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function request(): Request
}
if (null !== $this->hostedZoneType) {
if (!HostedZoneType::exists($this->hostedZoneType)) {
throw new InvalidArgument(sprintf('Invalid parameter "HostedZoneType" for "%s". The value "%s" is not a valid "HostedZoneType".', __CLASS__, $this->hostedZoneType));
throw new InvalidArgument(\sprintf('Invalid parameter "HostedZoneType" for "%s". The value "%s" is not a valid "HostedZoneType".', __CLASS__, $this->hostedZoneType));
}
$query['hostedzonetype'] = $this->hostedZoneType;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Input/ListResourceRecordSetsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function request(): Request
}
if (null !== $this->startRecordType) {
if (!RRType::exists($this->startRecordType)) {
throw new InvalidArgument(sprintf('Invalid parameter "StartRecordType" for "%s". The value "%s" is not a valid "RRType".', __CLASS__, $this->startRecordType));
throw new InvalidArgument(\sprintf('Invalid parameter "StartRecordType" for "%s". The value "%s" is not a valid "RRType".', __CLASS__, $this->startRecordType));
}
$query['type'] = $this->startRecordType;
}
Expand All @@ -167,7 +167,7 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->hostedZoneId) {
throw new InvalidArgument(sprintf('Missing parameter "HostedZoneId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "HostedZoneId" for "%s". The value cannot be null.', __CLASS__));
}
$v = preg_replace('#^(/hostedzone/|/change/|/delegationset/)#', '', $v);
$uri['Id'] = $v;
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObject/Change.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function requestBody(\DOMElement $node, \DOMDocument $document): void
{
$v = $this->action;
if (!ChangeAction::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "Action" for "%s". The value "%s" is not a valid "ChangeAction".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "Action" for "%s". The value "%s" is not a valid "ChangeAction".', __CLASS__, $v));
}
$node->appendChild($document->createElement('Action', $v));
$v = $this->resourceRecordSet;
Expand Down
6 changes: 3 additions & 3 deletions src/ValueObject/ResourceRecordSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ public function requestBody(\DOMElement $node, \DOMDocument $document): void
$node->appendChild($document->createElement('Name', $v));
$v = $this->type;
if (!RRType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "Type" for "%s". The value "%s" is not a valid "RRType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "Type" for "%s". The value "%s" is not a valid "RRType".', __CLASS__, $v));
}
$node->appendChild($document->createElement('Type', $v));
if (null !== $v = $this->setIdentifier) {
Expand All @@ -578,7 +578,7 @@ public function requestBody(\DOMElement $node, \DOMDocument $document): void
}
if (null !== $v = $this->region) {
if (!ResourceRecordSetRegion::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "Region" for "%s". The value "%s" is not a valid "ResourceRecordSetRegion".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "Region" for "%s". The value "%s" is not a valid "ResourceRecordSetRegion".', __CLASS__, $v));
}
$node->appendChild($document->createElement('Region', $v));
}
Expand All @@ -589,7 +589,7 @@ public function requestBody(\DOMElement $node, \DOMDocument $document): void
}
if (null !== $v = $this->failover) {
if (!ResourceRecordSetFailover::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "Failover" for "%s". The value "%s" is not a valid "ResourceRecordSetFailover".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "Failover" for "%s". The value "%s" is not a valid "ResourceRecordSetFailover".', __CLASS__, $v));
}
$node->appendChild($document->createElement('Failover', $v));
}
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObject/VPC.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function requestBody(\DOMElement $node, \DOMDocument $document): void
{
if (null !== $v = $this->vpcRegion) {
if (!VPCRegion::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "VPCRegion" for "%s". The value "%s" is not a valid "VPCRegion".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "VPCRegion" for "%s". The value "%s" is not a valid "VPCRegion".', __CLASS__, $v));
}
$node->appendChild($document->createElement('VPCRegion', $v));
}
Expand Down

0 comments on commit 8e7179b

Please sign in to comment.