@@ -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 |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | throw new OpenViduServerRecordingIsDisabledException(); |
| 116 | 116 | break; |
| 117 | 117 | default: |
| 118 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
| 118 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
| 119 | 119 | } |
| 120 | 120 | } |
| 121 | 121 | |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | public function stopRecording(string $recordingId): Recording |
| 162 | 162 | { |
| 163 | - $response = $this->client()->post(Uri::RECORDINGS_STOP.'/'.$recordingId); |
|
| 163 | + $response = $this->client()->post(Uri::RECORDINGS_STOP . '/' . $recordingId); |
|
| 164 | 164 | switch ($response->getStatusCode()) { |
| 165 | 165 | case 200: |
| 166 | 166 | $recording = RecordingBuilder::build(json_decode($response->getBody()->getContents(), true)); |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | throw new OpenViduRecordingStatusException("The recording has `starting` status. Wait until `started` status before stopping the recording."); |
| 177 | 177 | break; |
| 178 | 178 | default: |
| 179 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
| 179 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
| 180 | 180 | } |
| 181 | 181 | } |
| 182 | 182 | |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | */ |
| 191 | 191 | public function getRecording(string $recordingId) |
| 192 | 192 | { |
| 193 | - $response = $this->client()->get(Uri::RECORDINGS_URI.'/'.$recordingId); |
|
| 193 | + $response = $this->client()->get(Uri::RECORDINGS_URI . '/' . $recordingId); |
|
| 194 | 194 | switch ($response->getStatusCode()) { |
| 195 | 195 | case 200: |
| 196 | 196 | $recording = RecordingBuilder::build(json_decode($response->getBody()->getContents(), true)); |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | throw new OpenViduRecordingNotFoundException(); |
| 200 | 200 | break; |
| 201 | 201 | default: |
| 202 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
| 202 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
| 203 | 203 | } |
| 204 | 204 | } |
| 205 | 205 | |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | } |
| 222 | 222 | return $recordings; |
| 223 | 223 | default: |
| 224 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
| 224 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
| 225 | 225 | } |
| 226 | 226 | } |
| 227 | 227 | |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | */ |
| 237 | 237 | public function deleteRecording(string $recordingId): bool |
| 238 | 238 | { |
| 239 | - $response = $this->client()->delete(Uri::RECORDINGS_URI.'/'.$recordingId); |
|
| 239 | + $response = $this->client()->delete(Uri::RECORDINGS_URI . '/' . $recordingId); |
|
| 240 | 240 | |
| 241 | 241 | switch ($response->getStatusCode()) { |
| 242 | 242 | case 200: |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | throw new OpenViduRecordingStatusException("The recording has `started` status. Stop it before deletion."); |
| 249 | 249 | break; |
| 250 | 250 | default: |
| 251 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
| 251 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
| 252 | 252 | } |
| 253 | 253 | } |
| 254 | 254 | |