File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,5 @@ public function withName(string $name): ProfileInterface
74
74
75
75
public function putProfile ()
76
76
{
77
-
78
77
}
79
78
}
Original file line number Diff line number Diff line change @@ -120,6 +120,5 @@ public function withName(string $name): ProfileInterface
120
120
121
121
public function putProfile ()
122
122
{
123
-
124
123
}
125
124
}
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ class Profile extends BaseProfile
13
13
public function putProfile (): Profile
14
14
{
15
15
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 ) {
17
19
return $ profile ->putProfile ();
18
20
})->then (function (Profile $ profile ) {
19
21
return $ this ->handleCommand (new BuildSyncFromAsyncCommand (self ::HYDRATE_CLASS , $ profile ));
@@ -23,8 +25,12 @@ public function putProfile(): Profile
23
25
24
26
public function refresh () : Profile
25
27
{
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
+ );
29
35
}
30
36
}
You can’t perform that action at this time.
0 commit comments