Skip to content

Commit 4bd93e2

Browse files
committed
Line length fixes
1 parent 7d3cea7 commit 4bd93e2

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

src/Resource/Sync/WebHook.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ class WebHook extends BaseWebHook
1010
{
1111
public function refresh(): WebHook
1212
{
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+
);
1620
}
1721
}

src/Resource/Sync/WebHook/Config.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ class Config extends BaseConfig
1010
{
1111
public function refresh(): Config
1212
{
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+
);
1620
}
1721
}

tests/CommandBus/Handler/WebHooksHandlerTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@ public function testCommand()
2020
$resource = $this->prophesize(ResourceInterface::class)->reveal();
2121

2222
$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+
);
2426

2527
$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);
2732

2833
$handler = new WebHooksHandler($service->reveal(), $hydrator->reveal());
2934
$result = $this->await(

0 commit comments

Comments
 (0)