Skip to content

Commit 8732f04

Browse files
authored
Bump php-cs-fixer to version 3.60 (#1743)
1 parent 665cadd commit 8732f04

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
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.0.3
610

711
### Changed

src/Input/WriteRecordsRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,18 +165,18 @@ private function requestBody(): array
165165
{
166166
$payload = [];
167167
if (null === $v = $this->databaseName) {
168-
throw new InvalidArgument(sprintf('Missing parameter "DatabaseName" for "%s". The value cannot be null.', __CLASS__));
168+
throw new InvalidArgument(\sprintf('Missing parameter "DatabaseName" for "%s". The value cannot be null.', __CLASS__));
169169
}
170170
$payload['DatabaseName'] = $v;
171171
if (null === $v = $this->tableName) {
172-
throw new InvalidArgument(sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
172+
throw new InvalidArgument(\sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
173173
}
174174
$payload['TableName'] = $v;
175175
if (null !== $v = $this->commonAttributes) {
176176
$payload['CommonAttributes'] = $v->requestBody();
177177
}
178178
if (null === $v = $this->records) {
179-
throw new InvalidArgument(sprintf('Missing parameter "Records" for "%s". The value cannot be null.', __CLASS__));
179+
throw new InvalidArgument(\sprintf('Missing parameter "Records" for "%s". The value cannot be null.', __CLASS__));
180180
}
181181

182182
$index = -1;

src/ValueObject/Dimension.php

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

src/ValueObject/MeasureValue.php

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

src/ValueObject/Record.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function requestBody(): array
205205
}
206206
if (null !== $v = $this->measureValueType) {
207207
if (!MeasureValueType::exists($v)) {
208-
throw new InvalidArgument(sprintf('Invalid parameter "MeasureValueType" for "%s". The value "%s" is not a valid "MeasureValueType".', __CLASS__, $v));
208+
throw new InvalidArgument(\sprintf('Invalid parameter "MeasureValueType" for "%s". The value "%s" is not a valid "MeasureValueType".', __CLASS__, $v));
209209
}
210210
$payload['MeasureValueType'] = $v;
211211
}
@@ -214,7 +214,7 @@ public function requestBody(): array
214214
}
215215
if (null !== $v = $this->timeUnit) {
216216
if (!TimeUnit::exists($v)) {
217-
throw new InvalidArgument(sprintf('Invalid parameter "TimeUnit" for "%s". The value "%s" is not a valid "TimeUnit".', __CLASS__, $v));
217+
throw new InvalidArgument(\sprintf('Invalid parameter "TimeUnit" for "%s". The value "%s" is not a valid "TimeUnit".', __CLASS__, $v));
218218
}
219219
$payload['TimeUnit'] = $v;
220220
}

0 commit comments

Comments
 (0)