File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,12 @@ class WebHook extends BaseWebHook
10
10
{
11
11
public function refresh (): WebHook
12
12
{
13
- return $ this ->wait ($ this ->handleCommand (new BuildAsyncFromSyncCommand (self ::HYDRATE_CLASS , $ this ))->then (function (WebHookInterface $ webHook ) {
14
- return $ webHook ->refresh ();
15
- }));
13
+ return $ this ->wait (
14
+ $ this ->handleCommand (
15
+ new BuildAsyncFromSyncCommand (self ::HYDRATE_CLASS , $ this )
16
+ )->then (function (WebHookInterface $ webHook ) {
17
+ return $ webHook ->refresh ();
18
+ })
19
+ );
16
20
}
17
21
}
Original file line number Diff line number Diff line change @@ -10,8 +10,12 @@ class Config extends BaseConfig
10
10
{
11
11
public function refresh (): Config
12
12
{
13
- return $ this ->wait ($ this ->handleCommand (new BuildAsyncFromSyncCommand (self ::HYDRATE_CLASS , $ this ))->then (function (ConfigInterface $ config ) {
14
- return $ config ->refresh ();
15
- }));
13
+ return $ this ->wait (
14
+ $ this ->handleCommand (
15
+ new BuildAsyncFromSyncCommand (self ::HYDRATE_CLASS , $ this )
16
+ )->then (function (ConfigInterface $ config ) {
17
+ return $ config ->refresh ();
18
+ })
19
+ );
16
20
}
17
21
}
Original file line number Diff line number Diff line change @@ -20,10 +20,15 @@ public function testCommand()
20
20
$ resource = $ this ->prophesize (ResourceInterface::class)->reveal ();
21
21
22
22
$ service = $ this ->prophesize (IteratePagesService::class);
23
- $ service ->iterate ('prefix/foo/bar/hooks ' )->shouldBeCalled ()->willReturn (Observable::fromArray ([[['php-api-clients ' ]]]));
23
+ $ service ->iterate ('prefix/foo/bar/hooks ' )->shouldBeCalled ()->willReturn (
24
+ Observable::fromArray ([[['php-api-clients ' ]]])
25
+ );
24
26
25
27
$ hydrator = $ this ->prophesize (Hydrator::class);
26
- $ hydrator ->hydrate (WebHookInterface::HYDRATE_CLASS , ['php-api-clients ' ])->shouldBeCalled ()->willReturn ($ resource );
28
+ $ hydrator ->hydrate (
29
+ WebHookInterface::HYDRATE_CLASS ,
30
+ ['php-api-clients ' ]
31
+ )->shouldBeCalled ()->willReturn ($ resource );
27
32
28
33
$ handler = new WebHooksHandler ($ service ->reveal (), $ hydrator ->reveal ());
29
34
$ result = $ this ->await (
You can’t perform that action at this time.
0 commit comments