Skip to content

Commit 44ab857

Browse files
authored
Bump php-cs-fixer to version 3.60 (#1743)
1 parent 29b2351 commit 44ab857

9 files changed

+15
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Changed
6+
7+
- Enable compiler optimization for the `sprintf` function.
8+
59
## 2.1.2
610

711
### Changed

src/Input/CreateDeploymentInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ private function requestBody(): array
355355
{
356356
$payload = [];
357357
if (null === $v = $this->applicationName) {
358-
throw new InvalidArgument(sprintf('Missing parameter "applicationName" for "%s". The value cannot be null.', __CLASS__));
358+
throw new InvalidArgument(\sprintf('Missing parameter "applicationName" for "%s". The value cannot be null.', __CLASS__));
359359
}
360360
$payload['applicationName'] = $v;
361361
if (null !== $v = $this->deploymentGroupName) {
@@ -384,7 +384,7 @@ private function requestBody(): array
384384
}
385385
if (null !== $v = $this->fileExistsBehavior) {
386386
if (!FileExistsBehavior::exists($v)) {
387-
throw new InvalidArgument(sprintf('Invalid parameter "fileExistsBehavior" for "%s". The value "%s" is not a valid "FileExistsBehavior".', __CLASS__, $v));
387+
throw new InvalidArgument(\sprintf('Invalid parameter "fileExistsBehavior" for "%s". The value "%s" is not a valid "FileExistsBehavior".', __CLASS__, $v));
388388
}
389389
$payload['fileExistsBehavior'] = $v;
390390
}

src/Input/GetDeploymentInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private function requestBody(): array
8686
{
8787
$payload = [];
8888
if (null === $v = $this->deploymentId) {
89-
throw new InvalidArgument(sprintf('Missing parameter "deploymentId" for "%s". The value cannot be null.', __CLASS__));
89+
throw new InvalidArgument(\sprintf('Missing parameter "deploymentId" for "%s". The value cannot be null.', __CLASS__));
9090
}
9191
$payload['deploymentId'] = $v;
9292

src/Input/PutLifecycleEventHookExecutionStatusInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private function requestBody(): array
142142
}
143143
if (null !== $v = $this->status) {
144144
if (!LifecycleEventStatus::exists($v)) {
145-
throw new InvalidArgument(sprintf('Invalid parameter "status" for "%s". The value "%s" is not a valid "LifecycleEventStatus".', __CLASS__, $v));
145+
throw new InvalidArgument(\sprintf('Invalid parameter "status" for "%s". The value "%s" is not a valid "LifecycleEventStatus".', __CLASS__, $v));
146146
}
147147
$payload['status'] = $v;
148148
}

src/Result/GetDeploymentOutput.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ private function populateResultDeploymentInfo(array $json): DeploymentInfo
163163
'revision' => empty($json['revision']) ? null : $this->populateResultRevisionLocation($json['revision']),
164164
'status' => isset($json['status']) ? (string) $json['status'] : null,
165165
'errorInformation' => empty($json['errorInformation']) ? null : $this->populateResultErrorInformation($json['errorInformation']),
166-
'createTime' => (isset($json['createTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['createTime'])))) ? $d : null,
167-
'startTime' => (isset($json['startTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['startTime'])))) ? $d : null,
168-
'completeTime' => (isset($json['completeTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['completeTime'])))) ? $d : null,
166+
'createTime' => (isset($json['createTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['createTime'])))) ? $d : null,
167+
'startTime' => (isset($json['startTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['startTime'])))) ? $d : null,
168+
'completeTime' => (isset($json['completeTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['completeTime'])))) ? $d : null,
169169
'deploymentOverview' => empty($json['deploymentOverview']) ? null : $this->populateResultDeploymentOverview($json['deploymentOverview']),
170170
'description' => isset($json['description']) ? (string) $json['description'] : null,
171171
'creator' => isset($json['creator']) ? (string) $json['creator'] : null,

src/ValueObject/AutoRollbackConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function requestBody(): array
7676
foreach ($v as $listValue) {
7777
++$index;
7878
if (!AutoRollbackEvent::exists($listValue)) {
79-
throw new InvalidArgument(sprintf('Invalid parameter "events" for "%s". The value "%s" is not a valid "AutoRollbackEvent".', __CLASS__, $listValue));
79+
throw new InvalidArgument(\sprintf('Invalid parameter "events" for "%s". The value "%s" is not a valid "AutoRollbackEvent".', __CLASS__, $listValue));
8080
}
8181
$payload['events'][$index] = $listValue;
8282
}

src/ValueObject/EC2TagFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function requestBody(): array
9393
}
9494
if (null !== $v = $this->type) {
9595
if (!EC2TagFilterType::exists($v)) {
96-
throw new InvalidArgument(sprintf('Invalid parameter "Type" for "%s". The value "%s" is not a valid "EC2TagFilterType".', __CLASS__, $v));
96+
throw new InvalidArgument(\sprintf('Invalid parameter "Type" for "%s". The value "%s" is not a valid "EC2TagFilterType".', __CLASS__, $v));
9797
}
9898
$payload['Type'] = $v;
9999
}

src/ValueObject/RevisionLocation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function requestBody(): array
120120
$payload = [];
121121
if (null !== $v = $this->revisionType) {
122122
if (!RevisionLocationType::exists($v)) {
123-
throw new InvalidArgument(sprintf('Invalid parameter "revisionType" for "%s". The value "%s" is not a valid "RevisionLocationType".', __CLASS__, $v));
123+
throw new InvalidArgument(\sprintf('Invalid parameter "revisionType" for "%s". The value "%s" is not a valid "RevisionLocationType".', __CLASS__, $v));
124124
}
125125
$payload['revisionType'] = $v;
126126
}

src/ValueObject/S3Location.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function requestBody(): array
129129
}
130130
if (null !== $v = $this->bundleType) {
131131
if (!BundleType::exists($v)) {
132-
throw new InvalidArgument(sprintf('Invalid parameter "bundleType" for "%s". The value "%s" is not a valid "BundleType".', __CLASS__, $v));
132+
throw new InvalidArgument(\sprintf('Invalid parameter "bundleType" for "%s". The value "%s" is not a valid "BundleType".', __CLASS__, $v));
133133
}
134134
$payload['bundleType'] = $v;
135135
}

0 commit comments

Comments
 (0)