Skip to content

Commit 6712539

Browse files
authored
Bump php-cs-fixer to version 3.60 (#1743)
1 parent 6ad1707 commit 6712539

14 files changed

+31
-27
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.5.1
610

711
### Changed

src/Input/AddLayerVersionPermissionRequest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ public function request(): Request
167167
// Prepare URI
168168
$uri = [];
169169
if (null === $v = $this->layerName) {
170-
throw new InvalidArgument(sprintf('Missing parameter "LayerName" for "%s". The value cannot be null.', __CLASS__));
170+
throw new InvalidArgument(\sprintf('Missing parameter "LayerName" for "%s". The value cannot be null.', __CLASS__));
171171
}
172172
$uri['LayerName'] = $v;
173173
if (null === $v = $this->versionNumber) {
174-
throw new InvalidArgument(sprintf('Missing parameter "VersionNumber" for "%s". The value cannot be null.', __CLASS__));
174+
throw new InvalidArgument(\sprintf('Missing parameter "VersionNumber" for "%s". The value cannot be null.', __CLASS__));
175175
}
176176
$uri['VersionNumber'] = (string) $v;
177177
$uriString = '/2018-10-31/layers/' . rawurlencode($uri['LayerName']) . '/versions/' . rawurlencode($uri['VersionNumber']) . '/policy';
@@ -238,15 +238,15 @@ private function requestBody(): array
238238
$payload = [];
239239

240240
if (null === $v = $this->statementId) {
241-
throw new InvalidArgument(sprintf('Missing parameter "StatementId" for "%s". The value cannot be null.', __CLASS__));
241+
throw new InvalidArgument(\sprintf('Missing parameter "StatementId" for "%s". The value cannot be null.', __CLASS__));
242242
}
243243
$payload['StatementId'] = $v;
244244
if (null === $v = $this->action) {
245-
throw new InvalidArgument(sprintf('Missing parameter "Action" for "%s". The value cannot be null.', __CLASS__));
245+
throw new InvalidArgument(\sprintf('Missing parameter "Action" for "%s". The value cannot be null.', __CLASS__));
246246
}
247247
$payload['Action'] = $v;
248248
if (null === $v = $this->principal) {
249-
throw new InvalidArgument(sprintf('Missing parameter "Principal" for "%s". The value cannot be null.', __CLASS__));
249+
throw new InvalidArgument(\sprintf('Missing parameter "Principal" for "%s". The value cannot be null.', __CLASS__));
250250
}
251251
$payload['Principal'] = $v;
252252
if (null !== $v = $this->organizationId) {

src/Input/DeleteFunctionRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function request(): Request
9090
// Prepare URI
9191
$uri = [];
9292
if (null === $v = $this->functionName) {
93-
throw new InvalidArgument(sprintf('Missing parameter "FunctionName" for "%s". The value cannot be null.', __CLASS__));
93+
throw new InvalidArgument(\sprintf('Missing parameter "FunctionName" for "%s". The value cannot be null.', __CLASS__));
9494
}
9595
$uri['FunctionName'] = $v;
9696
$uriString = '/2015-03-31/functions/' . rawurlencode($uri['FunctionName']);

src/Input/GetFunctionConfigurationRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function request(): Request
9090
// Prepare URI
9191
$uri = [];
9292
if (null === $v = $this->functionName) {
93-
throw new InvalidArgument(sprintf('Missing parameter "FunctionName" for "%s". The value cannot be null.', __CLASS__));
93+
throw new InvalidArgument(\sprintf('Missing parameter "FunctionName" for "%s". The value cannot be null.', __CLASS__));
9494
}
9595
$uri['FunctionName'] = $v;
9696
$uriString = '/2015-03-31/functions/' . rawurlencode($uri['FunctionName']) . '/configuration';

src/Input/InvocationRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ public function request(): Request
160160
];
161161
if (null !== $this->invocationType) {
162162
if (!InvocationType::exists($this->invocationType)) {
163-
throw new InvalidArgument(sprintf('Invalid parameter "InvocationType" for "%s". The value "%s" is not a valid "InvocationType".', __CLASS__, $this->invocationType));
163+
throw new InvalidArgument(\sprintf('Invalid parameter "InvocationType" for "%s". The value "%s" is not a valid "InvocationType".', __CLASS__, $this->invocationType));
164164
}
165165
$headers['X-Amz-Invocation-Type'] = $this->invocationType;
166166
}
167167
if (null !== $this->logType) {
168168
if (!LogType::exists($this->logType)) {
169-
throw new InvalidArgument(sprintf('Invalid parameter "LogType" for "%s". The value "%s" is not a valid "LogType".', __CLASS__, $this->logType));
169+
throw new InvalidArgument(\sprintf('Invalid parameter "LogType" for "%s". The value "%s" is not a valid "LogType".', __CLASS__, $this->logType));
170170
}
171171
$headers['X-Amz-Log-Type'] = $this->logType;
172172
}
@@ -183,7 +183,7 @@ public function request(): Request
183183
// Prepare URI
184184
$uri = [];
185185
if (null === $v = $this->functionName) {
186-
throw new InvalidArgument(sprintf('Missing parameter "FunctionName" for "%s". The value cannot be null.', __CLASS__));
186+
throw new InvalidArgument(\sprintf('Missing parameter "FunctionName" for "%s". The value cannot be null.', __CLASS__));
187187
}
188188
$uri['FunctionName'] = $v;
189189
$uriString = '/2015-03-31/functions/' . rawurlencode($uri['FunctionName']) . '/invocations';

src/Input/ListFunctionsRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function request(): Request
114114
}
115115
if (null !== $this->functionVersion) {
116116
if (!FunctionVersion::exists($this->functionVersion)) {
117-
throw new InvalidArgument(sprintf('Invalid parameter "FunctionVersion" for "%s". The value "%s" is not a valid "FunctionVersion".', __CLASS__, $this->functionVersion));
117+
throw new InvalidArgument(\sprintf('Invalid parameter "FunctionVersion" for "%s". The value "%s" is not a valid "FunctionVersion".', __CLASS__, $this->functionVersion));
118118
}
119119
$query['FunctionVersion'] = $this->functionVersion;
120120
}

src/Input/ListLayerVersionsRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function request(): Request
135135
$query = [];
136136
if (null !== $this->compatibleRuntime) {
137137
if (!Runtime::exists($this->compatibleRuntime)) {
138-
throw new InvalidArgument(sprintf('Invalid parameter "CompatibleRuntime" for "%s". The value "%s" is not a valid "Runtime".', __CLASS__, $this->compatibleRuntime));
138+
throw new InvalidArgument(\sprintf('Invalid parameter "CompatibleRuntime" for "%s". The value "%s" is not a valid "Runtime".', __CLASS__, $this->compatibleRuntime));
139139
}
140140
$query['CompatibleRuntime'] = $this->compatibleRuntime;
141141
}
@@ -147,15 +147,15 @@ public function request(): Request
147147
}
148148
if (null !== $this->compatibleArchitecture) {
149149
if (!Architecture::exists($this->compatibleArchitecture)) {
150-
throw new InvalidArgument(sprintf('Invalid parameter "CompatibleArchitecture" for "%s". The value "%s" is not a valid "Architecture".', __CLASS__, $this->compatibleArchitecture));
150+
throw new InvalidArgument(\sprintf('Invalid parameter "CompatibleArchitecture" for "%s". The value "%s" is not a valid "Architecture".', __CLASS__, $this->compatibleArchitecture));
151151
}
152152
$query['CompatibleArchitecture'] = $this->compatibleArchitecture;
153153
}
154154

155155
// Prepare URI
156156
$uri = [];
157157
if (null === $v = $this->layerName) {
158-
throw new InvalidArgument(sprintf('Missing parameter "LayerName" for "%s". The value cannot be null.', __CLASS__));
158+
throw new InvalidArgument(\sprintf('Missing parameter "LayerName" for "%s". The value cannot be null.', __CLASS__));
159159
}
160160
$uri['LayerName'] = $v;
161161
$uriString = '/2018-10-31/layers/' . rawurlencode($uri['LayerName']) . '/versions';

src/Input/ListVersionsByFunctionRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function request(): Request
109109
// Prepare URI
110110
$uri = [];
111111
if (null === $v = $this->functionName) {
112-
throw new InvalidArgument(sprintf('Missing parameter "FunctionName" for "%s". The value cannot be null.', __CLASS__));
112+
throw new InvalidArgument(\sprintf('Missing parameter "FunctionName" for "%s". The value cannot be null.', __CLASS__));
113113
}
114114
$uri['FunctionName'] = $v;
115115
$uriString = '/2015-03-31/functions/' . rawurlencode($uri['FunctionName']) . '/versions';

src/Input/PublishLayerVersionRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function request(): Request
162162
// Prepare URI
163163
$uri = [];
164164
if (null === $v = $this->layerName) {
165-
throw new InvalidArgument(sprintf('Missing parameter "LayerName" for "%s". The value cannot be null.', __CLASS__));
165+
throw new InvalidArgument(\sprintf('Missing parameter "LayerName" for "%s". The value cannot be null.', __CLASS__));
166166
}
167167
$uri['LayerName'] = $v;
168168
$uriString = '/2018-10-31/layers/' . rawurlencode($uri['LayerName']) . '/versions';
@@ -231,7 +231,7 @@ private function requestBody(): array
231231
$payload['Description'] = $v;
232232
}
233233
if (null === $v = $this->content) {
234-
throw new InvalidArgument(sprintf('Missing parameter "Content" for "%s". The value cannot be null.', __CLASS__));
234+
throw new InvalidArgument(\sprintf('Missing parameter "Content" for "%s". The value cannot be null.', __CLASS__));
235235
}
236236
$payload['Content'] = $v->requestBody();
237237
if (null !== $v = $this->compatibleRuntimes) {
@@ -240,7 +240,7 @@ private function requestBody(): array
240240
foreach ($v as $listValue) {
241241
++$index;
242242
if (!Runtime::exists($listValue)) {
243-
throw new InvalidArgument(sprintf('Invalid parameter "CompatibleRuntimes" for "%s". The value "%s" is not a valid "Runtime".', __CLASS__, $listValue));
243+
throw new InvalidArgument(\sprintf('Invalid parameter "CompatibleRuntimes" for "%s". The value "%s" is not a valid "Runtime".', __CLASS__, $listValue));
244244
}
245245
$payload['CompatibleRuntimes'][$index] = $listValue;
246246
}
@@ -254,7 +254,7 @@ private function requestBody(): array
254254
foreach ($v as $listValue) {
255255
++$index;
256256
if (!Architecture::exists($listValue)) {
257-
throw new InvalidArgument(sprintf('Invalid parameter "CompatibleArchitectures" for "%s". The value "%s" is not a valid "Architecture".', __CLASS__, $listValue));
257+
throw new InvalidArgument(\sprintf('Invalid parameter "CompatibleArchitectures" for "%s". The value "%s" is not a valid "Architecture".', __CLASS__, $listValue));
258258
}
259259
$payload['CompatibleArchitectures'][$index] = $listValue;
260260
}

src/Input/UpdateFunctionConfigurationRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public function request(): Request
404404
// Prepare URI
405405
$uri = [];
406406
if (null === $v = $this->functionName) {
407-
throw new InvalidArgument(sprintf('Missing parameter "FunctionName" for "%s". The value cannot be null.', __CLASS__));
407+
throw new InvalidArgument(\sprintf('Missing parameter "FunctionName" for "%s". The value cannot be null.', __CLASS__));
408408
}
409409
$uri['FunctionName'] = $v;
410410
$uriString = '/2015-03-31/functions/' . rawurlencode($uri['FunctionName']) . '/configuration';
@@ -586,7 +586,7 @@ private function requestBody(): array
586586
}
587587
if (null !== $v = $this->runtime) {
588588
if (!Runtime::exists($v)) {
589-
throw new InvalidArgument(sprintf('Invalid parameter "Runtime" for "%s". The value "%s" is not a valid "Runtime".', __CLASS__, $v));
589+
throw new InvalidArgument(\sprintf('Invalid parameter "Runtime" for "%s". The value "%s" is not a valid "Runtime".', __CLASS__, $v));
590590
}
591591
$payload['Runtime'] = $v;
592592
}

0 commit comments

Comments
 (0)