File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -199,15 +199,14 @@ private function synchronize(): void
199
199
200
200
private function sendRequest (): ResponseInterface
201
201
{
202
- $ httpClient = Discover::httpClient ();
203
- $ requestFactory = Discover::httpRequestFactory ();
204
- $ httpRequest = $ requestFactory
205
- ->createRequest (self ::REQUEST_METHOD , $ this ->wksUrl )
206
- ->withHeader ('Content-Type ' , self ::CONTENT_TYPE )
207
- ->withHeader (
208
- 'User-Agent ' ,
209
- $ _SERVER ['HTTP_USER_AGENT ' ] ?? self ::HTTP_USER_AGENT
210
- );
211
- return $ httpClient ->sendRequest ($ httpRequest );
202
+ return Discover::httpClient ()->sendRequest (
203
+ Discover::httpRequestFactory ()
204
+ ->createRequest (self ::REQUEST_METHOD , $ this ->wksUrl )
205
+ ->withHeader ('Content-Type ' , self ::CONTENT_TYPE )
206
+ ->withHeader (
207
+ 'User-Agent ' ,
208
+ $ _SERVER ['HTTP_USER_AGENT ' ] ?? self ::HTTP_USER_AGENT
209
+ )
210
+ );
212
211
}
213
212
}
You can’t perform that action at this time.
0 commit comments