Skip to content

Commit da04ebc

Browse files
committed
re-run rector
1 parent 9cc974f commit da04ebc

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"kahlan/kahlan": "^5.2",
3737
"laminas/laminas-coding-standard": "^2.1.1",
3838
"php-coveralls/php-coveralls": "^2.4",
39-
"phpstan/phpstan": "^1.0",
39+
"phpstan/phpstan": "^2.1",
4040
"rector/rector": "dev-main"
4141
},
4242
"config": {

rector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
return RectorConfig::configure()
1212
->withPreparedSets(
1313
deadCode: true,
14-
codingStyle: true,
1514
codeQuality: true,
16-
earlyReturn: true,
15+
codingStyle: true,
16+
typeDeclarations: true,
1717
naming: true,
18-
typeDeclarations: true
18+
earlyReturn: true
1919
)
2020
->withPhpSets(php80: true)
2121
->withPaths([

spec/Service/ClientAuthServiceSpec.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
]
9292
));
9393

94-
$result = $service->callAPI($data);
95-
expect($result)->toBeAnInstanceOf(ClientAuthResult::class);
94+
$clientAuthResult = $service->callAPI($data);
95+
expect($clientAuthResult)->toBeAnInstanceOf(ClientAuthResult::class);
9696

9797
});
9898

@@ -171,8 +171,8 @@
171171
allow($this->httpClient)->toReceive('setRawBody')->with(Json::encode($data['form-data']));
172172

173173
$service->withClient('bar');
174-
$result = $service->callAPI($data);
175-
expect($result)->toBeAnInstanceOf(ClientAuthResult::class);
174+
$clientAuthResult = $service->callAPI($data);
175+
expect($clientAuthResult)->toBeAnInstanceOf(ClientAuthResult::class);
176176

177177
});
178178

src/Result/ClientAuthResult.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ private static function fromSucceed(?array $result): self
8585
*/
8686
private static function fromFailure(?array $result): self
8787
{
88-
$self = new self();
89-
$self->success = false;
88+
$self = new self();
89+
$self->success = false;
90+
9091
$self::$messages = $result['validation_messages'] ?? [];
9192

9293
return $self;

0 commit comments

Comments
 (0)