Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function sendRequest($method, $uri, array $headers = [], $body = null) |
||
32 | { |
||
33 | $request = MessageFactoryDiscovery::find()->createRequest($method, $uri, $headers, $body); |
||
34 | |||
35 | try { |
||
36 | return $this->getHttpClient()->sendRequest($request); |
||
37 | } catch (TransferException $e) { |
||
38 | throw new LinkedInTransferException('Error while requesting data from LinkedIn.com: '.$e->getMessage(), $e->getCode(), $e); |
||
39 | } |
||
40 | } |
||
41 | |||
66 |