@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | } |
17 | 17 | public function sendData($data) |
18 | 18 | { |
19 | - if ( !$data['sessionId'] ) { |
|
19 | + if (!$data['sessionId']) { |
|
20 | 20 | throw new InvalidRequestException('Session id is required'); |
21 | 21 | } |
22 | 22 | |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | $headers = [ |
26 | 26 | 'Accept' => 'application/json', |
27 | 27 | 'Content-Type' => 'application/json', |
28 | - 'Authorization' => 'Basic ' . $this->getAuthorization() |
|
28 | + 'Authorization' => 'Basic '.$this->getAuthorization() |
|
29 | 29 | ]; |
30 | 30 | |
31 | 31 | try { |
32 | - $httpResponse = $this->httpClient->request('GET', $this->getEndpoint('sessions/' . $sessionId), $headers); |
|
32 | + $httpResponse = $this->httpClient->request('GET', $this->getEndpoint('sessions/'.$sessionId), $headers); |
|
33 | 33 | } catch (\Exception $exception) { |
34 | 34 | throw new InvalidRequestException($exception->getMessage()); |
35 | 35 | } |