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 d92d1dd commit 7bbbc62
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Input/CreateSecretRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ private function requestBody(): array
{
$payload = [];
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__));
}
$payload['Name'] = $v;
if (null === $v = $this->clientRequestToken) {
Expand Down
2 changes: 1 addition & 1 deletion src/Input/DeleteSecretRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->secretId) {
throw new InvalidArgument(sprintf('Missing parameter "SecretId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "SecretId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['SecretId'] = $v;
if (null !== $v = $this->recoveryWindowInDays) {
Expand Down
2 changes: 1 addition & 1 deletion src/Input/GetSecretValueRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->secretId) {
throw new InvalidArgument(sprintf('Missing parameter "SecretId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "SecretId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['SecretId'] = $v;
if (null !== $v = $this->versionId) {
Expand Down
2 changes: 1 addition & 1 deletion src/Input/ListSecretsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private function requestBody(): array
}
if (null !== $v = $this->sortOrder) {
if (!SortOrderType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "SortOrder" for "%s". The value "%s" is not a valid "SortOrderType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "SortOrder" for "%s". The value "%s" is not a valid "SortOrderType".', __CLASS__, $v));
}
$payload['SortOrder'] = $v;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Input/PutSecretValueRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->secretId) {
throw new InvalidArgument(sprintf('Missing parameter "SecretId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "SecretId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['SecretId'] = $v;
if (null === $v = $this->clientRequestToken) {
Expand Down
2 changes: 1 addition & 1 deletion src/Input/UpdateSecretRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->secretId) {
throw new InvalidArgument(sprintf('Missing parameter "SecretId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "SecretId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['SecretId'] = $v;
if (null === $v = $this->clientRequestToken) {
Expand Down
2 changes: 1 addition & 1 deletion src/Result/CreateSecretResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private function populateResultReplicationStatusType(array $json): ReplicationSt
'KmsKeyId' => isset($json['KmsKeyId']) ? (string) $json['KmsKeyId'] : null,
'Status' => isset($json['Status']) ? (string) $json['Status'] : null,
'StatusMessage' => isset($json['StatusMessage']) ? (string) $json['StatusMessage'] : null,
'LastAccessedDate' => (isset($json['LastAccessedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['LastAccessedDate'])))) ? $d : null,
'LastAccessedDate' => (isset($json['LastAccessedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['LastAccessedDate'])))) ? $d : null,
]);
}
}
2 changes: 1 addition & 1 deletion src/Result/DeleteSecretResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ protected function populateResult(Response $response): void

$this->arn = isset($data['ARN']) ? (string) $data['ARN'] : null;
$this->name = isset($data['Name']) ? (string) $data['Name'] : null;
$this->deletionDate = (isset($data['DeletionDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $data['DeletionDate'])))) ? $d : null;
$this->deletionDate = (isset($data['DeletionDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $data['DeletionDate'])))) ? $d : null;
}
}
2 changes: 1 addition & 1 deletion src/Result/GetSecretValueResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ protected function populateResult(Response $response): void
$this->secretBinary = isset($data['SecretBinary']) ? base64_decode((string) $data['SecretBinary']) : null;
$this->secretString = isset($data['SecretString']) ? (string) $data['SecretString'] : null;
$this->versionStages = empty($data['VersionStages']) ? [] : $this->populateResultSecretVersionStagesType($data['VersionStages']);
$this->createdDate = (isset($data['CreatedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $data['CreatedDate'])))) ? $d : null;
$this->createdDate = (isset($data['CreatedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $data['CreatedDate'])))) ? $d : null;
}

/**
Expand Down
12 changes: 6 additions & 6 deletions src/Result/ListSecretsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ private function populateResultSecretListEntry(array $json): SecretListEntry
'RotationEnabled' => isset($json['RotationEnabled']) ? filter_var($json['RotationEnabled'], \FILTER_VALIDATE_BOOLEAN) : null,
'RotationLambdaARN' => isset($json['RotationLambdaARN']) ? (string) $json['RotationLambdaARN'] : null,
'RotationRules' => empty($json['RotationRules']) ? null : $this->populateResultRotationRulesType($json['RotationRules']),
'LastRotatedDate' => (isset($json['LastRotatedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['LastRotatedDate'])))) ? $d : null,
'LastChangedDate' => (isset($json['LastChangedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['LastChangedDate'])))) ? $d : null,
'LastAccessedDate' => (isset($json['LastAccessedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['LastAccessedDate'])))) ? $d : null,
'DeletedDate' => (isset($json['DeletedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['DeletedDate'])))) ? $d : null,
'NextRotationDate' => (isset($json['NextRotationDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['NextRotationDate'])))) ? $d : null,
'LastRotatedDate' => (isset($json['LastRotatedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['LastRotatedDate'])))) ? $d : null,
'LastChangedDate' => (isset($json['LastChangedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['LastChangedDate'])))) ? $d : null,
'LastAccessedDate' => (isset($json['LastAccessedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['LastAccessedDate'])))) ? $d : null,
'DeletedDate' => (isset($json['DeletedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['DeletedDate'])))) ? $d : null,
'NextRotationDate' => (isset($json['NextRotationDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['NextRotationDate'])))) ? $d : null,
'Tags' => !isset($json['Tags']) ? null : $this->populateResultTagListType($json['Tags']),
'SecretVersionsToStages' => !isset($json['SecretVersionsToStages']) ? null : $this->populateResultSecretVersionsToStagesMapType($json['SecretVersionsToStages']),
'OwningService' => isset($json['OwningService']) ? (string) $json['OwningService'] : null,
'CreatedDate' => (isset($json['CreatedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['CreatedDate'])))) ? $d : null,
'CreatedDate' => (isset($json['CreatedDate']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['CreatedDate'])))) ? $d : null,
'PrimaryRegion' => isset($json['PrimaryRegion']) ? (string) $json['PrimaryRegion'] : null,
]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/SecretsManagerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,6 @@ protected function getEndpointMetadata(?string $region): array
];
}

throw new UnsupportedRegion(sprintf('The region "%s" is not supported by "SecretsManager".', $region));
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "SecretsManager".', $region));
}
}
2 changes: 1 addition & 1 deletion src/ValueObject/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function requestBody(): array
$payload = [];
if (null !== $v = $this->key) {
if (!FilterNameStringType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "Key" for "%s". The value "%s" is not a valid "FilterNameStringType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "Key" for "%s". The value "%s" is not a valid "FilterNameStringType".', __CLASS__, $v));
}
$payload['Key'] = $v;
}
Expand Down

0 comments on commit 7bbbc62

Please sign in to comment.