Skip to content

Commit acddeff

Browse files
authored
Bump php-cs-fixer to version 3.60 (#1743)
1 parent 71df7de commit acddeff

14 files changed

+35
-31
lines changed

CHANGELOG.md

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

1212
- AWS api-change: Adding support for paginators in AppSync list APIs
1313

14+
### Changed
15+
16+
- Enable compiler optimization for the `sprintf` function.
17+
1418
## 2.1.1
1519

1620
### Changed

src/Input/CreateResolverRequest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,11 @@ public function request(): Request
289289
// Prepare URI
290290
$uri = [];
291291
if (null === $v = $this->apiId) {
292-
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
292+
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
293293
}
294294
$uri['apiId'] = $v;
295295
if (null === $v = $this->typeName) {
296-
throw new InvalidArgument(sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
296+
throw new InvalidArgument(\sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
297297
}
298298
$uri['typeName'] = $v;
299299
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/types/' . rawurlencode($uri['typeName']) . '/resolvers';
@@ -415,7 +415,7 @@ private function requestBody(): array
415415
$payload = [];
416416

417417
if (null === $v = $this->fieldName) {
418-
throw new InvalidArgument(sprintf('Missing parameter "fieldName" for "%s". The value cannot be null.', __CLASS__));
418+
throw new InvalidArgument(\sprintf('Missing parameter "fieldName" for "%s". The value cannot be null.', __CLASS__));
419419
}
420420
$payload['fieldName'] = $v;
421421
if (null !== $v = $this->dataSourceName) {
@@ -429,7 +429,7 @@ private function requestBody(): array
429429
}
430430
if (null !== $v = $this->kind) {
431431
if (!ResolverKind::exists($v)) {
432-
throw new InvalidArgument(sprintf('Invalid parameter "kind" for "%s". The value "%s" is not a valid "ResolverKind".', __CLASS__, $v));
432+
throw new InvalidArgument(\sprintf('Invalid parameter "kind" for "%s". The value "%s" is not a valid "ResolverKind".', __CLASS__, $v));
433433
}
434434
$payload['kind'] = $v;
435435
}
@@ -453,7 +453,7 @@ private function requestBody(): array
453453
}
454454
if (null !== $v = $this->metricsConfig) {
455455
if (!ResolverLevelMetricsConfig::exists($v)) {
456-
throw new InvalidArgument(sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "ResolverLevelMetricsConfig".', __CLASS__, $v));
456+
throw new InvalidArgument(\sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "ResolverLevelMetricsConfig".', __CLASS__, $v));
457457
}
458458
$payload['metricsConfig'] = $v;
459459
}

src/Input/DeleteResolverRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ public function request(): Request
9797
// Prepare URI
9898
$uri = [];
9999
if (null === $v = $this->apiId) {
100-
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
100+
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
101101
}
102102
$uri['apiId'] = $v;
103103
if (null === $v = $this->typeName) {
104-
throw new InvalidArgument(sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
104+
throw new InvalidArgument(\sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
105105
}
106106
$uri['typeName'] = $v;
107107
if (null === $v = $this->fieldName) {
108-
throw new InvalidArgument(sprintf('Missing parameter "fieldName" for "%s". The value cannot be null.', __CLASS__));
108+
throw new InvalidArgument(\sprintf('Missing parameter "fieldName" for "%s". The value cannot be null.', __CLASS__));
109109
}
110110
$uri['fieldName'] = $v;
111111
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/types/' . rawurlencode($uri['typeName']) . '/resolvers/' . rawurlencode($uri['fieldName']);

src/Input/GetSchemaCreationStatusRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function request(): Request
6363
// Prepare URI
6464
$uri = [];
6565
if (null === $v = $this->apiId) {
66-
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
66+
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
6767
}
6868
$uri['apiId'] = $v;
6969
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/schemacreation';

src/Input/ListApiKeysRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function request(): Request
100100
// Prepare URI
101101
$uri = [];
102102
if (null === $v = $this->apiId) {
103-
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
103+
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
104104
}
105105
$uri['apiId'] = $v;
106106
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/apikeys';

src/Input/ListResolversRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ public function request(): Request
117117
// Prepare URI
118118
$uri = [];
119119
if (null === $v = $this->apiId) {
120-
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
120+
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
121121
}
122122
$uri['apiId'] = $v;
123123
if (null === $v = $this->typeName) {
124-
throw new InvalidArgument(sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
124+
throw new InvalidArgument(\sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
125125
}
126126
$uri['typeName'] = $v;
127127
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/types/' . rawurlencode($uri['typeName']) . '/resolvers';

src/Input/StartSchemaCreationRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function request(): Request
8080
// Prepare URI
8181
$uri = [];
8282
if (null === $v = $this->apiId) {
83-
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
83+
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
8484
}
8585
$uri['apiId'] = $v;
8686
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/schemacreation';
@@ -112,7 +112,7 @@ private function requestBody(): array
112112
$payload = [];
113113

114114
if (null === $v = $this->definition) {
115-
throw new InvalidArgument(sprintf('Missing parameter "definition" for "%s". The value cannot be null.', __CLASS__));
115+
throw new InvalidArgument(\sprintf('Missing parameter "definition" for "%s". The value cannot be null.', __CLASS__));
116116
}
117117
$payload['definition'] = base64_encode($v);
118118

src/Input/UpdateApiKeyRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ public function request(): Request
111111
// Prepare URI
112112
$uri = [];
113113
if (null === $v = $this->apiId) {
114-
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
114+
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
115115
}
116116
$uri['apiId'] = $v;
117117
if (null === $v = $this->id) {
118-
throw new InvalidArgument(sprintf('Missing parameter "id" for "%s". The value cannot be null.', __CLASS__));
118+
throw new InvalidArgument(\sprintf('Missing parameter "id" for "%s". The value cannot be null.', __CLASS__));
119119
}
120120
$uri['id'] = $v;
121121
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/apikeys/' . rawurlencode($uri['id']);

src/Input/UpdateDataSourceRequest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,11 @@ public function request(): Request
270270
// Prepare URI
271271
$uri = [];
272272
if (null === $v = $this->apiId) {
273-
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
273+
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
274274
}
275275
$uri['apiId'] = $v;
276276
if (null === $v = $this->name) {
277-
throw new InvalidArgument(sprintf('Missing parameter "name" for "%s". The value cannot be null.', __CLASS__));
277+
throw new InvalidArgument(\sprintf('Missing parameter "name" for "%s". The value cannot be null.', __CLASS__));
278278
}
279279
$uri['name'] = $v;
280280
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/datasources/' . rawurlencode($uri['name']);
@@ -392,10 +392,10 @@ private function requestBody(): array
392392
$payload['description'] = $v;
393393
}
394394
if (null === $v = $this->type) {
395-
throw new InvalidArgument(sprintf('Missing parameter "type" for "%s". The value cannot be null.', __CLASS__));
395+
throw new InvalidArgument(\sprintf('Missing parameter "type" for "%s". The value cannot be null.', __CLASS__));
396396
}
397397
if (!DataSourceType::exists($v)) {
398-
throw new InvalidArgument(sprintf('Invalid parameter "type" for "%s". The value "%s" is not a valid "DataSourceType".', __CLASS__, $v));
398+
throw new InvalidArgument(\sprintf('Invalid parameter "type" for "%s". The value "%s" is not a valid "DataSourceType".', __CLASS__, $v));
399399
}
400400
$payload['type'] = $v;
401401
if (null !== $v = $this->serviceRoleArn) {
@@ -424,7 +424,7 @@ private function requestBody(): array
424424
}
425425
if (null !== $v = $this->metricsConfig) {
426426
if (!DataSourceLevelMetricsConfig::exists($v)) {
427-
throw new InvalidArgument(sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "DataSourceLevelMetricsConfig".', __CLASS__, $v));
427+
throw new InvalidArgument(\sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "DataSourceLevelMetricsConfig".', __CLASS__, $v));
428428
}
429429
$payload['metricsConfig'] = $v;
430430
}

src/Input/UpdateResolverRequest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,15 +289,15 @@ public function request(): Request
289289
// Prepare URI
290290
$uri = [];
291291
if (null === $v = $this->apiId) {
292-
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
292+
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
293293
}
294294
$uri['apiId'] = $v;
295295
if (null === $v = $this->typeName) {
296-
throw new InvalidArgument(sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
296+
throw new InvalidArgument(\sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
297297
}
298298
$uri['typeName'] = $v;
299299
if (null === $v = $this->fieldName) {
300-
throw new InvalidArgument(sprintf('Missing parameter "fieldName" for "%s". The value cannot be null.', __CLASS__));
300+
throw new InvalidArgument(\sprintf('Missing parameter "fieldName" for "%s". The value cannot be null.', __CLASS__));
301301
}
302302
$uri['fieldName'] = $v;
303303
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/types/' . rawurlencode($uri['typeName']) . '/resolvers/' . rawurlencode($uri['fieldName']);
@@ -429,7 +429,7 @@ private function requestBody(): array
429429
}
430430
if (null !== $v = $this->kind) {
431431
if (!ResolverKind::exists($v)) {
432-
throw new InvalidArgument(sprintf('Invalid parameter "kind" for "%s". The value "%s" is not a valid "ResolverKind".', __CLASS__, $v));
432+
throw new InvalidArgument(\sprintf('Invalid parameter "kind" for "%s". The value "%s" is not a valid "ResolverKind".', __CLASS__, $v));
433433
}
434434
$payload['kind'] = $v;
435435
}
@@ -453,7 +453,7 @@ private function requestBody(): array
453453
}
454454
if (null !== $v = $this->metricsConfig) {
455455
if (!ResolverLevelMetricsConfig::exists($v)) {
456-
throw new InvalidArgument(sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "ResolverLevelMetricsConfig".', __CLASS__, $v));
456+
throw new InvalidArgument(\sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "ResolverLevelMetricsConfig".', __CLASS__, $v));
457457
}
458458
$payload['metricsConfig'] = $v;
459459
}

src/ValueObject/AppSyncRuntime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function requestBody(): array
7070
$payload = [];
7171
$v = $this->name;
7272
if (!RuntimeName::exists($v)) {
73-
throw new InvalidArgument(sprintf('Invalid parameter "name" for "%s". The value "%s" is not a valid "RuntimeName".', __CLASS__, $v));
73+
throw new InvalidArgument(\sprintf('Invalid parameter "name" for "%s". The value "%s" is not a valid "RuntimeName".', __CLASS__, $v));
7474
}
7575
$payload['name'] = $v;
7676
$v = $this->runtimeVersion;

src/ValueObject/AuthorizationConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function requestBody(): array
7070
$payload = [];
7171
$v = $this->authorizationType;
7272
if (!AuthorizationType::exists($v)) {
73-
throw new InvalidArgument(sprintf('Invalid parameter "authorizationType" for "%s". The value "%s" is not a valid "AuthorizationType".', __CLASS__, $v));
73+
throw new InvalidArgument(\sprintf('Invalid parameter "authorizationType" for "%s". The value "%s" is not a valid "AuthorizationType".', __CLASS__, $v));
7474
}
7575
$payload['authorizationType'] = $v;
7676
if (null !== $v = $this->awsIamConfig) {

src/ValueObject/RelationalDatabaseDataSourceConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function requestBody(): array
7171
$payload = [];
7272
if (null !== $v = $this->relationalDatabaseSourceType) {
7373
if (!RelationalDatabaseSourceType::exists($v)) {
74-
throw new InvalidArgument(sprintf('Invalid parameter "relationalDatabaseSourceType" for "%s". The value "%s" is not a valid "RelationalDatabaseSourceType".', __CLASS__, $v));
74+
throw new InvalidArgument(\sprintf('Invalid parameter "relationalDatabaseSourceType" for "%s". The value "%s" is not a valid "RelationalDatabaseSourceType".', __CLASS__, $v));
7575
}
7676
$payload['relationalDatabaseSourceType'] = $v;
7777
}

src/ValueObject/SyncConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ public function requestBody(): array
9797
$payload = [];
9898
if (null !== $v = $this->conflictHandler) {
9999
if (!ConflictHandlerType::exists($v)) {
100-
throw new InvalidArgument(sprintf('Invalid parameter "conflictHandler" for "%s". The value "%s" is not a valid "ConflictHandlerType".', __CLASS__, $v));
100+
throw new InvalidArgument(\sprintf('Invalid parameter "conflictHandler" for "%s". The value "%s" is not a valid "ConflictHandlerType".', __CLASS__, $v));
101101
}
102102
$payload['conflictHandler'] = $v;
103103
}
104104
if (null !== $v = $this->conflictDetection) {
105105
if (!ConflictDetectionType::exists($v)) {
106-
throw new InvalidArgument(sprintf('Invalid parameter "conflictDetection" for "%s". The value "%s" is not a valid "ConflictDetectionType".', __CLASS__, $v));
106+
throw new InvalidArgument(\sprintf('Invalid parameter "conflictDetection" for "%s". The value "%s" is not a valid "ConflictDetectionType".', __CLASS__, $v));
107107
}
108108
$payload['conflictDetection'] = $v;
109109
}

0 commit comments

Comments
 (0)