Skip to content

Commit 099c5aa

Browse files
authored
Bump php-cs-fixer to version 3.60 (#1743)
1 parent 08916a1 commit 099c5aa

34 files changed

+106
-105
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Changed
66

7+
- Enable compiler optimization for the `sprintf` function.
78
- AWS enhancement: Documentation updates.
89

910
## 3.2.1

src/Input/BatchGetItemInput.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private function requestBody(): array
176176
{
177177
$payload = [];
178178
if (null === $v = $this->requestItems) {
179-
throw new InvalidArgument(sprintf('Missing parameter "RequestItems" for "%s". The value cannot be null.', __CLASS__));
179+
throw new InvalidArgument(\sprintf('Missing parameter "RequestItems" for "%s". The value cannot be null.', __CLASS__));
180180
}
181181

182182
if (empty($v)) {
@@ -189,7 +189,7 @@ private function requestBody(): array
189189
}
190190
if (null !== $v = $this->returnConsumedCapacity) {
191191
if (!ReturnConsumedCapacity::exists($v)) {
192-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
192+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
193193
}
194194
$payload['ReturnConsumedCapacity'] = $v;
195195
}

src/Input/BatchWriteItemInput.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private function requestBody(): array
176176
{
177177
$payload = [];
178178
if (null === $v = $this->requestItems) {
179-
throw new InvalidArgument(sprintf('Missing parameter "RequestItems" for "%s". The value cannot be null.', __CLASS__));
179+
throw new InvalidArgument(\sprintf('Missing parameter "RequestItems" for "%s". The value cannot be null.', __CLASS__));
180180
}
181181

182182
if (empty($v)) {
@@ -194,13 +194,13 @@ private function requestBody(): array
194194
}
195195
if (null !== $v = $this->returnConsumedCapacity) {
196196
if (!ReturnConsumedCapacity::exists($v)) {
197-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
197+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
198198
}
199199
$payload['ReturnConsumedCapacity'] = $v;
200200
}
201201
if (null !== $v = $this->returnItemCollectionMetrics) {
202202
if (!ReturnItemCollectionMetrics::exists($v)) {
203-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnItemCollectionMetrics" for "%s". The value "%s" is not a valid "ReturnItemCollectionMetrics".', __CLASS__, $v));
203+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnItemCollectionMetrics" for "%s". The value "%s" is not a valid "ReturnItemCollectionMetrics".', __CLASS__, $v));
204204
}
205205
$payload['ReturnItemCollectionMetrics'] = $v;
206206
}

src/Input/CreateTableInput.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ private function requestBody(): array
547547
{
548548
$payload = [];
549549
if (null === $v = $this->attributeDefinitions) {
550-
throw new InvalidArgument(sprintf('Missing parameter "AttributeDefinitions" for "%s". The value cannot be null.', __CLASS__));
550+
throw new InvalidArgument(\sprintf('Missing parameter "AttributeDefinitions" for "%s". The value cannot be null.', __CLASS__));
551551
}
552552

553553
$index = -1;
@@ -558,11 +558,11 @@ private function requestBody(): array
558558
}
559559

560560
if (null === $v = $this->tableName) {
561-
throw new InvalidArgument(sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
561+
throw new InvalidArgument(\sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
562562
}
563563
$payload['TableName'] = $v;
564564
if (null === $v = $this->keySchema) {
565-
throw new InvalidArgument(sprintf('Missing parameter "KeySchema" for "%s". The value cannot be null.', __CLASS__));
565+
throw new InvalidArgument(\sprintf('Missing parameter "KeySchema" for "%s". The value cannot be null.', __CLASS__));
566566
}
567567

568568
$index = -1;
@@ -590,7 +590,7 @@ private function requestBody(): array
590590
}
591591
if (null !== $v = $this->billingMode) {
592592
if (!BillingMode::exists($v)) {
593-
throw new InvalidArgument(sprintf('Invalid parameter "BillingMode" for "%s". The value "%s" is not a valid "BillingMode".', __CLASS__, $v));
593+
throw new InvalidArgument(\sprintf('Invalid parameter "BillingMode" for "%s". The value "%s" is not a valid "BillingMode".', __CLASS__, $v));
594594
}
595595
$payload['BillingMode'] = $v;
596596
}
@@ -613,7 +613,7 @@ private function requestBody(): array
613613
}
614614
if (null !== $v = $this->tableClass) {
615615
if (!TableClass::exists($v)) {
616-
throw new InvalidArgument(sprintf('Invalid parameter "TableClass" for "%s". The value "%s" is not a valid "TableClass".', __CLASS__, $v));
616+
throw new InvalidArgument(\sprintf('Invalid parameter "TableClass" for "%s". The value "%s" is not a valid "TableClass".', __CLASS__, $v));
617617
}
618618
$payload['TableClass'] = $v;
619619
}

src/Input/DeleteItemInput.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,11 @@ private function requestBody(): array
472472
{
473473
$payload = [];
474474
if (null === $v = $this->tableName) {
475-
throw new InvalidArgument(sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
475+
throw new InvalidArgument(\sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
476476
}
477477
$payload['TableName'] = $v;
478478
if (null === $v = $this->key) {
479-
throw new InvalidArgument(sprintf('Missing parameter "Key" for "%s". The value cannot be null.', __CLASS__));
479+
throw new InvalidArgument(\sprintf('Missing parameter "Key" for "%s". The value cannot be null.', __CLASS__));
480480
}
481481

482482
if (empty($v)) {
@@ -499,25 +499,25 @@ private function requestBody(): array
499499
}
500500
if (null !== $v = $this->conditionalOperator) {
501501
if (!ConditionalOperator::exists($v)) {
502-
throw new InvalidArgument(sprintf('Invalid parameter "ConditionalOperator" for "%s". The value "%s" is not a valid "ConditionalOperator".', __CLASS__, $v));
502+
throw new InvalidArgument(\sprintf('Invalid parameter "ConditionalOperator" for "%s". The value "%s" is not a valid "ConditionalOperator".', __CLASS__, $v));
503503
}
504504
$payload['ConditionalOperator'] = $v;
505505
}
506506
if (null !== $v = $this->returnValues) {
507507
if (!ReturnValue::exists($v)) {
508-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnValues" for "%s". The value "%s" is not a valid "ReturnValue".', __CLASS__, $v));
508+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnValues" for "%s". The value "%s" is not a valid "ReturnValue".', __CLASS__, $v));
509509
}
510510
$payload['ReturnValues'] = $v;
511511
}
512512
if (null !== $v = $this->returnConsumedCapacity) {
513513
if (!ReturnConsumedCapacity::exists($v)) {
514-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
514+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
515515
}
516516
$payload['ReturnConsumedCapacity'] = $v;
517517
}
518518
if (null !== $v = $this->returnItemCollectionMetrics) {
519519
if (!ReturnItemCollectionMetrics::exists($v)) {
520-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnItemCollectionMetrics" for "%s". The value "%s" is not a valid "ReturnItemCollectionMetrics".', __CLASS__, $v));
520+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnItemCollectionMetrics" for "%s". The value "%s" is not a valid "ReturnItemCollectionMetrics".', __CLASS__, $v));
521521
}
522522
$payload['ReturnItemCollectionMetrics'] = $v;
523523
}
@@ -546,7 +546,7 @@ private function requestBody(): array
546546
}
547547
if (null !== $v = $this->returnValuesOnConditionCheckFailure) {
548548
if (!ReturnValuesOnConditionCheckFailure::exists($v)) {
549-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnValuesOnConditionCheckFailure" for "%s". The value "%s" is not a valid "ReturnValuesOnConditionCheckFailure".', __CLASS__, $v));
549+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnValuesOnConditionCheckFailure" for "%s". The value "%s" is not a valid "ReturnValuesOnConditionCheckFailure".', __CLASS__, $v));
550550
}
551551
$payload['ReturnValuesOnConditionCheckFailure'] = $v;
552552
}

src/Input/DeleteTableInput.php

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

src/Input/DescribeTableInput.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private function requestBody(): array
8787
{
8888
$payload = [];
8989
if (null === $v = $this->tableName) {
90-
throw new InvalidArgument(sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
90+
throw new InvalidArgument(\sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
9191
}
9292
$payload['TableName'] = $v;
9393

src/Input/ExecuteStatementInput.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private function requestBody(): array
244244
{
245245
$payload = [];
246246
if (null === $v = $this->statement) {
247-
throw new InvalidArgument(sprintf('Missing parameter "Statement" for "%s". The value cannot be null.', __CLASS__));
247+
throw new InvalidArgument(\sprintf('Missing parameter "Statement" for "%s". The value cannot be null.', __CLASS__));
248248
}
249249
$payload['Statement'] = $v;
250250
if (null !== $v = $this->parameters) {
@@ -263,7 +263,7 @@ private function requestBody(): array
263263
}
264264
if (null !== $v = $this->returnConsumedCapacity) {
265265
if (!ReturnConsumedCapacity::exists($v)) {
266-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
266+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
267267
}
268268
$payload['ReturnConsumedCapacity'] = $v;
269269
}
@@ -272,7 +272,7 @@ private function requestBody(): array
272272
}
273273
if (null !== $v = $this->returnValuesOnConditionCheckFailure) {
274274
if (!ReturnValuesOnConditionCheckFailure::exists($v)) {
275-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnValuesOnConditionCheckFailure" for "%s". The value "%s" is not a valid "ReturnValuesOnConditionCheckFailure".', __CLASS__, $v));
275+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnValuesOnConditionCheckFailure" for "%s". The value "%s" is not a valid "ReturnValuesOnConditionCheckFailure".', __CLASS__, $v));
276276
}
277277
$payload['ReturnValuesOnConditionCheckFailure'] = $v;
278278
}

src/Input/GetItemInput.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,11 @@ private function requestBody(): array
296296
{
297297
$payload = [];
298298
if (null === $v = $this->tableName) {
299-
throw new InvalidArgument(sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
299+
throw new InvalidArgument(\sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
300300
}
301301
$payload['TableName'] = $v;
302302
if (null === $v = $this->key) {
303-
throw new InvalidArgument(sprintf('Missing parameter "Key" for "%s". The value cannot be null.', __CLASS__));
303+
throw new InvalidArgument(\sprintf('Missing parameter "Key" for "%s". The value cannot be null.', __CLASS__));
304304
}
305305

306306
if (empty($v)) {
@@ -324,7 +324,7 @@ private function requestBody(): array
324324
}
325325
if (null !== $v = $this->returnConsumedCapacity) {
326326
if (!ReturnConsumedCapacity::exists($v)) {
327-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
327+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
328328
}
329329
$payload['ReturnConsumedCapacity'] = $v;
330330
}

src/Input/PutItemInput.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -487,11 +487,11 @@ private function requestBody(): array
487487
{
488488
$payload = [];
489489
if (null === $v = $this->tableName) {
490-
throw new InvalidArgument(sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
490+
throw new InvalidArgument(\sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
491491
}
492492
$payload['TableName'] = $v;
493493
if (null === $v = $this->item) {
494-
throw new InvalidArgument(sprintf('Missing parameter "Item" for "%s". The value cannot be null.', __CLASS__));
494+
throw new InvalidArgument(\sprintf('Missing parameter "Item" for "%s". The value cannot be null.', __CLASS__));
495495
}
496496

497497
if (empty($v)) {
@@ -514,25 +514,25 @@ private function requestBody(): array
514514
}
515515
if (null !== $v = $this->returnValues) {
516516
if (!ReturnValue::exists($v)) {
517-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnValues" for "%s". The value "%s" is not a valid "ReturnValue".', __CLASS__, $v));
517+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnValues" for "%s". The value "%s" is not a valid "ReturnValue".', __CLASS__, $v));
518518
}
519519
$payload['ReturnValues'] = $v;
520520
}
521521
if (null !== $v = $this->returnConsumedCapacity) {
522522
if (!ReturnConsumedCapacity::exists($v)) {
523-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
523+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
524524
}
525525
$payload['ReturnConsumedCapacity'] = $v;
526526
}
527527
if (null !== $v = $this->returnItemCollectionMetrics) {
528528
if (!ReturnItemCollectionMetrics::exists($v)) {
529-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnItemCollectionMetrics" for "%s". The value "%s" is not a valid "ReturnItemCollectionMetrics".', __CLASS__, $v));
529+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnItemCollectionMetrics" for "%s". The value "%s" is not a valid "ReturnItemCollectionMetrics".', __CLASS__, $v));
530530
}
531531
$payload['ReturnItemCollectionMetrics'] = $v;
532532
}
533533
if (null !== $v = $this->conditionalOperator) {
534534
if (!ConditionalOperator::exists($v)) {
535-
throw new InvalidArgument(sprintf('Invalid parameter "ConditionalOperator" for "%s". The value "%s" is not a valid "ConditionalOperator".', __CLASS__, $v));
535+
throw new InvalidArgument(\sprintf('Invalid parameter "ConditionalOperator" for "%s". The value "%s" is not a valid "ConditionalOperator".', __CLASS__, $v));
536536
}
537537
$payload['ConditionalOperator'] = $v;
538538
}
@@ -561,7 +561,7 @@ private function requestBody(): array
561561
}
562562
if (null !== $v = $this->returnValuesOnConditionCheckFailure) {
563563
if (!ReturnValuesOnConditionCheckFailure::exists($v)) {
564-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnValuesOnConditionCheckFailure" for "%s". The value "%s" is not a valid "ReturnValuesOnConditionCheckFailure".', __CLASS__, $v));
564+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnValuesOnConditionCheckFailure" for "%s". The value "%s" is not a valid "ReturnValuesOnConditionCheckFailure".', __CLASS__, $v));
565565
}
566566
$payload['ReturnValuesOnConditionCheckFailure'] = $v;
567567
}

src/Input/QueryInput.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -703,15 +703,15 @@ private function requestBody(): array
703703
{
704704
$payload = [];
705705
if (null === $v = $this->tableName) {
706-
throw new InvalidArgument(sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
706+
throw new InvalidArgument(\sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
707707
}
708708
$payload['TableName'] = $v;
709709
if (null !== $v = $this->indexName) {
710710
$payload['IndexName'] = $v;
711711
}
712712
if (null !== $v = $this->select) {
713713
if (!Select::exists($v)) {
714-
throw new InvalidArgument(sprintf('Invalid parameter "Select" for "%s". The value "%s" is not a valid "Select".', __CLASS__, $v));
714+
throw new InvalidArgument(\sprintf('Invalid parameter "Select" for "%s". The value "%s" is not a valid "Select".', __CLASS__, $v));
715715
}
716716
$payload['Select'] = $v;
717717
}
@@ -751,7 +751,7 @@ private function requestBody(): array
751751
}
752752
if (null !== $v = $this->conditionalOperator) {
753753
if (!ConditionalOperator::exists($v)) {
754-
throw new InvalidArgument(sprintf('Invalid parameter "ConditionalOperator" for "%s". The value "%s" is not a valid "ConditionalOperator".', __CLASS__, $v));
754+
throw new InvalidArgument(\sprintf('Invalid parameter "ConditionalOperator" for "%s". The value "%s" is not a valid "ConditionalOperator".', __CLASS__, $v));
755755
}
756756
$payload['ConditionalOperator'] = $v;
757757
}
@@ -770,7 +770,7 @@ private function requestBody(): array
770770
}
771771
if (null !== $v = $this->returnConsumedCapacity) {
772772
if (!ReturnConsumedCapacity::exists($v)) {
773-
throw new InvalidArgument(sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
773+
throw new InvalidArgument(\sprintf('Invalid parameter "ReturnConsumedCapacity" for "%s". The value "%s" is not a valid "ReturnConsumedCapacity".', __CLASS__, $v));
774774
}
775775
$payload['ReturnConsumedCapacity'] = $v;
776776
}

0 commit comments

Comments
 (0)