Skip to content

Commit af8d790

Browse files
committed
PSR-2
1 parent e1bb265 commit af8d790

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/Resource/EmptyProfile.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,5 @@ public function withName(string $name): ProfileInterface
7474

7575
public function putProfile()
7676
{
77-
7877
}
7978
}

src/Resource/Profile.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,5 @@ public function withName(string $name): ProfileInterface
120120

121121
public function putProfile()
122122
{
123-
124123
}
125124
}

src/Resource/Sync/Profile.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ class Profile extends BaseProfile
1313
public function putProfile(): Profile
1414
{
1515
return $this->wait(
16-
$this->handleCommand(new BuildAsyncFromSyncCommand(self::HYDRATE_CLASS, $this))->then(function (AsyncProfile $profile) {
16+
$this->handleCommand(
17+
new BuildAsyncFromSyncCommand(self::HYDRATE_CLASS, $this)
18+
)->then(function (AsyncProfile $profile) {
1719
return $profile->putProfile();
1820
})->then(function (Profile $profile) {
1921
return $this->handleCommand(new BuildSyncFromAsyncCommand(self::HYDRATE_CLASS, $profile));
@@ -23,8 +25,12 @@ public function putProfile(): Profile
2325

2426
public function refresh() : Profile
2527
{
26-
return $this->wait($this->handleCommand(new BuildAsyncFromSyncCommand(self::HYDRATE_CLASS, $this))->then(function (ProfileInterface $profile) {
27-
return $profile->refresh();
28-
}));
28+
return $this->wait(
29+
$this->handleCommand(
30+
new BuildAsyncFromSyncCommand(self::HYDRATE_CLASS, $this)
31+
)->then(function (ProfileInterface $profile) {
32+
return $profile->refresh();
33+
})
34+
);
2935
}
3036
}

0 commit comments

Comments
 (0)