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 1e902ad commit 39c721b
Show file tree
Hide file tree
Showing 34 changed files with 80 additions and 76 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Changed

- Enable compiler optimization for the `sprintf` function.

## 1.8.1

### Changed
Expand Down
6 changes: 3 additions & 3 deletions src/Input/AdminAddUserToGroupRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;
if (null === $v = $this->groupName) {
throw new InvalidArgument(sprintf('Missing parameter "GroupName" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "GroupName" for "%s". The value cannot be null.', __CLASS__));
}
$payload['GroupName'] = $v;

Expand Down
4 changes: 2 additions & 2 deletions src/Input/AdminConfirmSignUpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;
if (null !== $v = $this->clientMetadata) {
Expand Down
8 changes: 4 additions & 4 deletions src/Input/AdminCreateUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,11 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;
if (null !== $v = $this->userAttributes) {
Expand All @@ -410,7 +410,7 @@ private function requestBody(): array
}
if (null !== $v = $this->messageAction) {
if (!MessageActionType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "MessageAction" for "%s". The value "%s" is not a valid "MessageActionType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "MessageAction" for "%s". The value "%s" is not a valid "MessageActionType".', __CLASS__, $v));
}
$payload['MessageAction'] = $v;
}
Expand All @@ -420,7 +420,7 @@ private function requestBody(): array
foreach ($v as $listValue) {
++$index;
if (!DeliveryMediumType::exists($listValue)) {
throw new InvalidArgument(sprintf('Invalid parameter "DesiredDeliveryMediums" for "%s". The value "%s" is not a valid "DeliveryMediumType".', __CLASS__, $listValue));
throw new InvalidArgument(\sprintf('Invalid parameter "DesiredDeliveryMediums" for "%s". The value "%s" is not a valid "DeliveryMediumType".', __CLASS__, $listValue));
}
$payload['DesiredDeliveryMediums'][$index] = $listValue;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Input/AdminDeleteUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;

Expand Down
4 changes: 2 additions & 2 deletions src/Input/AdminDisableUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;

Expand Down
4 changes: 2 additions & 2 deletions src/Input/AdminEnableUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;

Expand Down
4 changes: 2 additions & 2 deletions src/Input/AdminGetUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;

Expand Down
8 changes: 4 additions & 4 deletions src/Input/AdminInitiateAuthRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,18 +315,18 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->clientId) {
throw new InvalidArgument(sprintf('Missing parameter "ClientId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "ClientId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['ClientId'] = $v;
if (null === $v = $this->authFlow) {
throw new InvalidArgument(sprintf('Missing parameter "AuthFlow" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "AuthFlow" for "%s". The value cannot be null.', __CLASS__));
}
if (!AuthFlowType::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "AuthFlow" for "%s". The value "%s" is not a valid "AuthFlowType".', __CLASS__, $v));
throw new InvalidArgument(\sprintf('Invalid parameter "AuthFlow" for "%s". The value "%s" is not a valid "AuthFlowType".', __CLASS__, $v));
}
$payload['AuthFlow'] = $v;
if (null !== $v = $this->authParameters) {
Expand Down
6 changes: 3 additions & 3 deletions src/Input/AdminRemoveUserFromGroupRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;
if (null === $v = $this->groupName) {
throw new InvalidArgument(sprintf('Missing parameter "GroupName" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "GroupName" for "%s". The value cannot be null.', __CLASS__));
}
$payload['GroupName'] = $v;

Expand Down
4 changes: 2 additions & 2 deletions src/Input/AdminResetUserPasswordRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;
if (null !== $v = $this->clientMetadata) {
Expand Down
6 changes: 3 additions & 3 deletions src/Input/AdminSetUserPasswordRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;
if (null === $v = $this->password) {
throw new InvalidArgument(sprintf('Missing parameter "Password" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Password" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Password'] = $v;
if (null !== $v = $this->permanent) {
Expand Down
6 changes: 3 additions & 3 deletions src/Input/AdminUpdateUserAttributesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,15 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;
if (null === $v = $this->userAttributes) {
throw new InvalidArgument(sprintf('Missing parameter "UserAttributes" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserAttributes" for "%s". The value cannot be null.', __CLASS__));
}

$index = -1;
Expand Down
4 changes: 2 additions & 2 deletions src/Input/AdminUserGlobalSignOutRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;

Expand Down
6 changes: 3 additions & 3 deletions src/Input/ChangePasswordRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->previousPassword) {
throw new InvalidArgument(sprintf('Missing parameter "PreviousPassword" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "PreviousPassword" for "%s". The value cannot be null.', __CLASS__));
}
$payload['PreviousPassword'] = $v;
if (null === $v = $this->proposedPassword) {
throw new InvalidArgument(sprintf('Missing parameter "ProposedPassword" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "ProposedPassword" for "%s". The value cannot be null.', __CLASS__));
}
$payload['ProposedPassword'] = $v;
if (null === $v = $this->accessToken) {
throw new InvalidArgument(sprintf('Missing parameter "AccessToken" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "AccessToken" for "%s". The value cannot be null.', __CLASS__));
}
$payload['AccessToken'] = $v;

Expand Down
8 changes: 4 additions & 4 deletions src/Input/ConfirmForgotPasswordRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,22 +285,22 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->clientId) {
throw new InvalidArgument(sprintf('Missing parameter "ClientId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "ClientId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['ClientId'] = $v;
if (null !== $v = $this->secretHash) {
$payload['SecretHash'] = $v;
}
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;
if (null === $v = $this->confirmationCode) {
throw new InvalidArgument(sprintf('Missing parameter "ConfirmationCode" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "ConfirmationCode" for "%s". The value cannot be null.', __CLASS__));
}
$payload['ConfirmationCode'] = $v;
if (null === $v = $this->password) {
throw new InvalidArgument(sprintf('Missing parameter "Password" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Password" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Password'] = $v;
if (null !== $v = $this->analyticsMetadata) {
Expand Down
6 changes: 3 additions & 3 deletions src/Input/ConfirmSignUpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,18 +281,18 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->clientId) {
throw new InvalidArgument(sprintf('Missing parameter "ClientId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "ClientId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['ClientId'] = $v;
if (null !== $v = $this->secretHash) {
$payload['SecretHash'] = $v;
}
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;
if (null === $v = $this->confirmationCode) {
throw new InvalidArgument(sprintf('Missing parameter "ConfirmationCode" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "ConfirmationCode" for "%s". The value cannot be null.', __CLASS__));
}
$payload['ConfirmationCode'] = $v;
if (null !== $v = $this->forceAliasCreation) {
Expand Down
4 changes: 2 additions & 2 deletions src/Input/CreateGroupRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->groupName) {
throw new InvalidArgument(sprintf('Missing parameter "GroupName" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "GroupName" for "%s". The value cannot be null.', __CLASS__));
}
$payload['GroupName'] = $v;
if (null === $v = $this->userPoolId) {
throw new InvalidArgument(sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "UserPoolId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['UserPoolId'] = $v;
if (null !== $v = $this->description) {
Expand Down
4 changes: 2 additions & 2 deletions src/Input/ForgotPasswordRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ private function requestBody(): array
{
$payload = [];
if (null === $v = $this->clientId) {
throw new InvalidArgument(sprintf('Missing parameter "ClientId" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "ClientId" for "%s". The value cannot be null.', __CLASS__));
}
$payload['ClientId'] = $v;
if (null !== $v = $this->secretHash) {
Expand All @@ -242,7 +242,7 @@ private function requestBody(): array
$payload['UserContextData'] = $v->requestBody();
}
if (null === $v = $this->username) {
throw new InvalidArgument(sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
throw new InvalidArgument(\sprintf('Missing parameter "Username" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Username'] = $v;
if (null !== $v = $this->analyticsMetadata) {
Expand Down
Loading

0 comments on commit 39c721b

Please sign in to comment.