File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed
Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 1111return 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 ([
Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments