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 71df7de commit acddeff
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 31 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

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

### Changed

- Enable compiler optimization for the `sprintf` function.

## 2.1.1

### Changed
Expand Down
10 changes: 5 additions & 5 deletions src/Input/CreateResolverRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->apiId) {
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
}
$uri['apiId'] = $v;
if (null === $v = $this->typeName) {
throw new InvalidArgument(sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
}
$uri['typeName'] = $v;
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/types/' . rawurlencode($uri['typeName']) . '/resolvers';
Expand Down Expand Up @@ -415,7 +415,7 @@ private function requestBody(): array
$payload = [];

if (null === $v = $this->fieldName) {
throw new InvalidArgument(sprintf('Missing parameter "fieldName" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "fieldName" for "%s". The value cannot be null.', __CLASS__));
}
$payload['fieldName'] = $v;
if (null !== $v = $this->dataSourceName) {
Expand All @@ -429,7 +429,7 @@ private function requestBody(): array
}
if (null !== $v = $this->kind) {
if (!ResolverKind::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "kind" for "%s". The value "%s" is not a valid "ResolverKind".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "kind" for "%s". The value "%s" is not a valid "ResolverKind".', __CLASS__, $v));
}
$payload['kind'] = $v;
}
Expand All @@ -453,7 +453,7 @@ private function requestBody(): array
}
if (null !== $v = $this->metricsConfig) {
if (!ResolverLevelMetricsConfig::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "ResolverLevelMetricsConfig".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "ResolverLevelMetricsConfig".', __CLASS__, $v));
}
$payload['metricsConfig'] = $v;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Input/DeleteResolverRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->apiId) {
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
}
$uri['apiId'] = $v;
if (null === $v = $this->typeName) {
throw new InvalidArgument(sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
}
$uri['typeName'] = $v;
if (null === $v = $this->fieldName) {
throw new InvalidArgument(sprintf('Missing parameter "fieldName" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "fieldName" for "%s". The value cannot be null.', __CLASS__));
}
$uri['fieldName'] = $v;
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/types/' . rawurlencode($uri['typeName']) . '/resolvers/' . rawurlencode($uri['fieldName']);
Expand Down
2 changes: 1 addition & 1 deletion src/Input/GetSchemaCreationStatusRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->apiId) {
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
}
$uri['apiId'] = $v;
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/schemacreation';
Expand Down
2 changes: 1 addition & 1 deletion src/Input/ListApiKeysRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->apiId) {
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
}
$uri['apiId'] = $v;
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/apikeys';
Expand Down
4 changes: 2 additions & 2 deletions src/Input/ListResolversRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->apiId) {
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
}
$uri['apiId'] = $v;
if (null === $v = $this->typeName) {
throw new InvalidArgument(sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
}
$uri['typeName'] = $v;
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/types/' . rawurlencode($uri['typeName']) . '/resolvers';
Expand Down
4 changes: 2 additions & 2 deletions src/Input/StartSchemaCreationRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->apiId) {
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
}
$uri['apiId'] = $v;
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/schemacreation';
Expand Down Expand Up @@ -112,7 +112,7 @@ private function requestBody(): array
$payload = [];

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

Expand Down
4 changes: 2 additions & 2 deletions src/Input/UpdateApiKeyRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->apiId) {
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
}
$uri['apiId'] = $v;
if (null === $v = $this->id) {
throw new InvalidArgument(sprintf('Missing parameter "id" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "id" for "%s". The value cannot be null.', __CLASS__));
}
$uri['id'] = $v;
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/apikeys/' . rawurlencode($uri['id']);
Expand Down
10 changes: 5 additions & 5 deletions src/Input/UpdateDataSourceRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,11 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->apiId) {
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
}
$uri['apiId'] = $v;
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__));
}
$uri['name'] = $v;
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/datasources/' . rawurlencode($uri['name']);
Expand Down Expand Up @@ -392,10 +392,10 @@ private function requestBody(): array
$payload['description'] = $v;
}
if (null === $v = $this->type) {
throw new InvalidArgument(sprintf('Missing parameter "type" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "type" for "%s". The value cannot be null.', __CLASS__));
}
if (!DataSourceType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "type" for "%s". The value "%s" is not a valid "DataSourceType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "type" for "%s". The value "%s" is not a valid "DataSourceType".', __CLASS__, $v));
}
$payload['type'] = $v;
if (null !== $v = $this->serviceRoleArn) {
Expand Down Expand Up @@ -424,7 +424,7 @@ private function requestBody(): array
}
if (null !== $v = $this->metricsConfig) {
if (!DataSourceLevelMetricsConfig::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "DataSourceLevelMetricsConfig".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "DataSourceLevelMetricsConfig".', __CLASS__, $v));
}
$payload['metricsConfig'] = $v;
}
Expand Down
10 changes: 5 additions & 5 deletions src/Input/UpdateResolverRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,15 @@ public function request(): Request
// Prepare URI
$uri = [];
if (null === $v = $this->apiId) {
throw new InvalidArgument(sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "apiId" for "%s". The value cannot be null.', __CLASS__));
}
$uri['apiId'] = $v;
if (null === $v = $this->typeName) {
throw new InvalidArgument(sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "typeName" for "%s". The value cannot be null.', __CLASS__));
}
$uri['typeName'] = $v;
if (null === $v = $this->fieldName) {
throw new InvalidArgument(sprintf('Missing parameter "fieldName" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "fieldName" for "%s". The value cannot be null.', __CLASS__));
}
$uri['fieldName'] = $v;
$uriString = '/v1/apis/' . rawurlencode($uri['apiId']) . '/types/' . rawurlencode($uri['typeName']) . '/resolvers/' . rawurlencode($uri['fieldName']);
Expand Down Expand Up @@ -429,7 +429,7 @@ private function requestBody(): array
}
if (null !== $v = $this->kind) {
if (!ResolverKind::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "kind" for "%s". The value "%s" is not a valid "ResolverKind".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "kind" for "%s". The value "%s" is not a valid "ResolverKind".', __CLASS__, $v));
}
$payload['kind'] = $v;
}
Expand All @@ -453,7 +453,7 @@ private function requestBody(): array
}
if (null !== $v = $this->metricsConfig) {
if (!ResolverLevelMetricsConfig::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "ResolverLevelMetricsConfig".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "ResolverLevelMetricsConfig".', __CLASS__, $v));
}
$payload['metricsConfig'] = $v;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObject/AppSyncRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function requestBody(): array
$payload = [];
$v = $this->name;
if (!RuntimeName::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "name" for "%s". The value "%s" is not a valid "RuntimeName".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "name" for "%s". The value "%s" is not a valid "RuntimeName".', __CLASS__, $v));
}
$payload['name'] = $v;
$v = $this->runtimeVersion;
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObject/AuthorizationConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function requestBody(): array
$payload = [];
$v = $this->authorizationType;
if (!AuthorizationType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "authorizationType" for "%s". The value "%s" is not a valid "AuthorizationType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "authorizationType" for "%s". The value "%s" is not a valid "AuthorizationType".', __CLASS__, $v));
}
$payload['authorizationType'] = $v;
if (null !== $v = $this->awsIamConfig) {
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObject/RelationalDatabaseDataSourceConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function requestBody(): array
$payload = [];
if (null !== $v = $this->relationalDatabaseSourceType) {
if (!RelationalDatabaseSourceType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "relationalDatabaseSourceType" for "%s". The value "%s" is not a valid "RelationalDatabaseSourceType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "relationalDatabaseSourceType" for "%s". The value "%s" is not a valid "RelationalDatabaseSourceType".', __CLASS__, $v));
}
$payload['relationalDatabaseSourceType'] = $v;
}
Expand Down
4 changes: 2 additions & 2 deletions src/ValueObject/SyncConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ public function requestBody(): array
$payload = [];
if (null !== $v = $this->conflictHandler) {
if (!ConflictHandlerType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "conflictHandler" for "%s". The value "%s" is not a valid "ConflictHandlerType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "conflictHandler" for "%s". The value "%s" is not a valid "ConflictHandlerType".', __CLASS__, $v));
}
$payload['conflictHandler'] = $v;
}
if (null !== $v = $this->conflictDetection) {
if (!ConflictDetectionType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "conflictDetection" for "%s". The value "%s" is not a valid "ConflictDetectionType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "conflictDetection" for "%s". The value "%s" is not a valid "ConflictDetectionType".', __CLASS__, $v));
}
$payload['conflictDetection'] = $v;
}
Expand Down

0 comments on commit acddeff

Please sign in to comment.