Skip to content

Commit e4aa460

Browse files
authored
Update php-cs-fixer (#1353)
1 parent 80c8669 commit e4aa460

File tree

8 files changed

+14
-3
lines changed

8 files changed

+14
-3
lines changed

src/AwsError/XmlAwsErrorFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function createFromContent(string $content, array $headers): AwsError
1818
try {
1919
/**
2020
* @phpstan-ignore-next-line
21+
*
2122
* @psalm-suppress InvalidArgument
2223
*/
2324
set_error_handler(static function ($errno, $errstr) {

src/Input.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ abstract class Input
1818

1919
/**
2020
* @param array{
21+
*
2122
* @region?: ?string,
2223
* } $input
2324
*/

src/Sts/Input/AssumeRoleRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ final class AssumeRoleRequest extends Input
130130
* SerialNumber?: string,
131131
* TokenCode?: string,
132132
* SourceIdentity?: string,
133+
*
133134
* @region?: string,
134135
* } $input
135136
*/

src/Sts/Input/AssumeRoleWithWebIdentityRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ final class AssumeRoleWithWebIdentityRequest extends Input
8787
* PolicyArns?: PolicyDescriptorType[],
8888
* Policy?: string,
8989
* DurationSeconds?: int,
90+
*
9091
* @region?: string,
9192
* } $input
9293
*/

src/Sts/Input/GetCallerIdentityRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ final class GetCallerIdentityRequest extends Input
1010
{
1111
/**
1212
* @param array{
13+
*
1314
* @region?: string,
1415
* } $input
1516
*/

src/Sts/StsClient.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class StsClient extends AbstractApi
4848
* SerialNumber?: string,
4949
* TokenCode?: string,
5050
* SourceIdentity?: string,
51+
*
5152
* @region?: string,
5253
* }|AssumeRoleRequest $input
5354
*
@@ -86,6 +87,7 @@ public function assumeRole($input): AssumeRoleResponse
8687
* PolicyArns?: PolicyDescriptorType[],
8788
* Policy?: string,
8889
* DurationSeconds?: int,
90+
*
8991
* @region?: string,
9092
* }|AssumeRoleWithWebIdentityRequest $input
9193
*
@@ -120,6 +122,7 @@ public function assumeRoleWithWebIdentity($input): AssumeRoleWithWebIdentityResp
120122
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-sts-2011-06-15.html#getcalleridentity
121123
*
122124
* @param array{
125+
*
123126
* @region?: string,
124127
* }|GetCallerIdentityRequest $input
125128
*/

src/Test/ResultMockFactory.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class ResultMockFactory
2727
* </code>
2828
*
2929
* @template T
30+
*
3031
* @psalm-param class-string<T> $class
3132
*
3233
* @return Result|T
@@ -61,6 +62,7 @@ public static function createFailing(
6162
* </code>
6263
*
6364
* @template T
65+
*
6466
* @psalm-param class-string<T> $class
6567
*
6668
* @return Result|T
@@ -123,6 +125,7 @@ public static function create(string $class, array $data = [])
123125
* Instantiate a Waiter class with a final state.
124126
*
125127
* @template T
128+
*
126129
* @psalm-param class-string<T> $class
127130
*
128131
* @return Result|T
@@ -241,7 +244,7 @@ private static function addPropertiesOnResult(\ReflectionClass $reflectionClass,
241244
throw new LogicException(sprintf('Expected base namespace "%s" to have a backslash. ', $baseNamespace));
242245
}
243246

244-
$awsClientClass = $baseNamespace . (substr($baseNamespace, $pos)) . 'Client';
247+
$awsClientClass = $baseNamespace . substr($baseNamespace, $pos) . 'Client';
245248
$inputClass = $baseNamespace . '\\Input\\' . $classNameWithoutSuffix . 'Request';
246249

247250
if (class_exists($awsClientClass)) {

tests/Unit/Stream/CallableStreamTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public function testChunk(callable $content, array $expected): void
4141

4242
public function provideLengths(): iterable
4343
{
44-
yield [(function () {
44+
yield [function () {
4545
return 'Hello world';
46-
}), null];
46+
}, null];
4747
}
4848

4949
public function provideStrings(): iterable

0 commit comments

Comments
 (0)