Skip to content

Commit d796eb6

Browse files
authored
Update php-cs-fixer (#1353)
1 parent 45657f8 commit d796eb6

File tree

316 files changed

+798
-488
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

316 files changed

+798
-488
lines changed

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
restore-keys: php-cs-fixer-
6666

6767
- name: PHP-CS-Fixer
68-
uses: docker://oskarstark/php-cs-fixer-ga:3.7.0
68+
uses: docker://oskarstark/php-cs-fixer-ga:3.13.0
6969
with:
7070
args: --dry-run --diff
7171

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"symfony/service-contracts": "^1.0 || ^2.0 || ^3.0"
1818
},
1919
"require-dev": {
20-
"friendsofphp/php-cs-fixer": "3.7.0",
20+
"friendsofphp/php-cs-fixer": "3.13.*",
2121
"illuminate/cache": "^6.18.13 || ^7.10 || ^8.0 || ^9.0",
2222
"illuminate/filesystem": "^6.18.13 || ^7.10 || ^8.0",
2323
"illuminate/mail": "^6.18.13 || ^7.10 || ^8.0",

src/CodeGenerator/src/Generator/ClientGenerator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getVersion() {
6262
$signatureVersions = array_intersect($supportedVersions, $config['signVersions']);
6363
rsort($signatureVersions);
6464

65-
return strtr(' return [
65+
return strtr('return [
6666
"endpoint" => "ENDPOINT",
6767
"signRegion" => "REGION",
6868
"signService" => SIGN_SERVICE,
@@ -230,6 +230,7 @@ public function getVersion() {
230230
$body .= '}';
231231
}
232232

233+
$body .= "\n";
233234
if (isset($endpoints['_default']['aws'])) {
234235
$body .= $dumpConfig($endpoints['_default']['aws']);
235236
} elseif (isset($endpoints['_global']['aws'])) {

src/CodeGenerator/src/Generator/InputGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ private function inputClassRequestGetters(StructureShape $inputShape, ClassBuild
463463
// Return the Request
464464
return new Request($method, \$uriString, \$query, \$headers, StreamFactory::create(\$body));
465465
PHP
466-
);
466+
);
467467
}
468468

469469
/**
@@ -495,7 +495,7 @@ private function stringify(string $variable, Member $member, string $part): stri
495495
case 'long':
496496
return $variable;
497497
case 'integer':
498-
return '(string) ' . $variable;
498+
return '(string) ' . $variable;
499499
}
500500

501501
throw new \InvalidArgumentException(sprintf('Type "%s" is not yet implemented', $shape->getType()));

src/CodeGenerator/src/Generator/RequestSerializer/JsonRpcSerializer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public function getHeaders(Operation $operation): string
2424
];
2525
2626
PHP
27-
, [
28-
'VERSION' => number_format($operation->getService()->getJsonVersion(), 1),
29-
'TARGET' => sprintf('%s.%s', $operation->getService()->getTargetPrefix(), $operation->getName()),
30-
]);
27+
, [
28+
'VERSION' => number_format($operation->getService()->getJsonVersion(), 1),
29+
'TARGET' => sprintf('%s.%s', $operation->getService()->getTargetPrefix(), $operation->getName()),
30+
]);
3131
}
3232
}

src/Core/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/Core/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/Core/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/Core/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/Core/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
*/

0 commit comments

Comments
 (0)