| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 21 | public function sendRequest($method, $uri, array $headers = [], $body = null, $protocolVersion = '1.1') |
||
| 22 | { |
||
| 23 | $request = MessageFactoryDiscovery::find()->createRequest($method, $uri, $headers, $body, $protocolVersion); |
||
| 24 | |||
| 25 | try { |
||
| 26 | return $this->getHttpClient()->sendRequest($request); |
||
| 27 | } catch (TransferException $e) { |
||
| 28 | throw new LinkedInTransferException('Error while requesting data from LinkedIn.com: '.$e->getMessage(), $e->getCode(), $e); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 54 |