@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | 'auth' => [ |
66 | 66 | $this->config['app'], $this->config['secret'] |
67 | 67 | ], |
68 | - 'base_uri' => $this->config['domain'].':'.$this->config['port'], |
|
68 | + 'base_uri' => $this->config['domain'] . ':' . $this->config['port'], |
|
69 | 69 | 'debug' => $this->config['debug'], |
70 | 70 | 'http_errors' => false, |
71 | 71 | 'verify' => false |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | throw new OpenViduServerRecordingIsDisabledException(); |
125 | 125 | break; |
126 | 126 | default: |
127 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
127 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
128 | 128 | } |
129 | 129 | } |
130 | 130 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | */ |
170 | 170 | public function stopRecording(string $recordingId): Recording |
171 | 171 | { |
172 | - $response = $this->client()->post(Uri::RECORDINGS_STOP.'/'.$recordingId); |
|
172 | + $response = $this->client()->post(Uri::RECORDINGS_STOP . '/' . $recordingId); |
|
173 | 173 | switch ($response->getStatusCode()) { |
174 | 174 | case 200: |
175 | 175 | $recording = RecordingBuilder::build(json_decode($response->getBody()->getContents(), true)); |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | throw new OpenViduRecordingStatusException("The recording has `starting` status. Wait until `started` status before stopping the recording."); |
187 | 187 | break; |
188 | 188 | default: |
189 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
189 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
190 | 190 | } |
191 | 191 | } |
192 | 192 | |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | */ |
201 | 201 | public function getRecording(string $recordingId) |
202 | 202 | { |
203 | - $response = $this->client()->get(Uri::RECORDINGS_URI.'/'.$recordingId); |
|
203 | + $response = $this->client()->get(Uri::RECORDINGS_URI . '/' . $recordingId); |
|
204 | 204 | switch ($response->getStatusCode()) { |
205 | 205 | case 200: |
206 | 206 | $recording = RecordingBuilder::build(json_decode($response->getBody()->getContents(), true)); |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | throw new OpenViduRecordingNotFoundException(); |
210 | 210 | break; |
211 | 211 | default: |
212 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
212 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
213 | 213 | } |
214 | 214 | } |
215 | 215 | |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | } |
232 | 232 | return $recordings; |
233 | 233 | default: |
234 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
234 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
235 | 235 | } |
236 | 236 | } |
237 | 237 | |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | */ |
247 | 247 | public function deleteRecording(string $recordingId): bool |
248 | 248 | { |
249 | - $response = $this->client()->delete(Uri::RECORDINGS_URI.'/'.$recordingId); |
|
249 | + $response = $this->client()->delete(Uri::RECORDINGS_URI . '/' . $recordingId); |
|
250 | 250 | |
251 | 251 | switch ($response->getStatusCode()) { |
252 | 252 | case 200: |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | throw new OpenViduRecordingStatusException("The recording has `started` status. Stop it before deletion."); |
259 | 259 | break; |
260 | 260 | default: |
261 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
261 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
262 | 262 | } |
263 | 263 | } |
264 | 264 |