@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function createSession(?SessionProperties $properties = null): Session |
| 54 | 54 | { |
| 55 | - $session = new Session($this->client(),null, $properties); |
|
| 55 | + $session = new Session($this->client(), null, $properties); |
|
| 56 | 56 | Cache::store('openvidu')->forever($session->getSessionId(), $session->toJson()); |
| 57 | 57 | return $session; |
| 58 | 58 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | 'auth' => [ |
| 75 | 75 | $this->config['app'], $this->config['secret'] |
| 76 | 76 | ], |
| 77 | - 'base_uri' => $this->config['domain'].':'.$this->config['port'], |
|
| 77 | + 'base_uri' => $this->config['domain'] . ':' . $this->config['port'], |
|
| 78 | 78 | 'debug' => $this->config['debug'], |
| 79 | 79 | 'http_errors' => false, |
| 80 | 80 | 'verify' => false |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | case 501: |
| 137 | 137 | throw new OpenViduServerRecordingIsDisabledException(); |
| 138 | 138 | default: |
| 139 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
| 139 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
| 140 | 140 | } |
| 141 | 141 | } |
| 142 | 142 | |
@@ -166,14 +166,14 @@ discard block |
||
| 166 | 166 | */ |
| 167 | 167 | public function getRecording(string $recordingId): Recording |
| 168 | 168 | { |
| 169 | - $response = $this->client()->get(Uri::RECORDINGS_URI.'/'.$recordingId); |
|
| 169 | + $response = $this->client()->get(Uri::RECORDINGS_URI . '/' . $recordingId); |
|
| 170 | 170 | switch ($response->getStatusCode()) { |
| 171 | 171 | case 200: |
| 172 | 172 | return RecordingBuilder::build(json_decode($response->getBody()->getContents(), true)); |
| 173 | 173 | case 404: |
| 174 | 174 | throw new OpenViduRecordingNotFoundException(); |
| 175 | 175 | default: |
| 176 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
| 176 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
| 177 | 177 | } |
| 178 | 178 | } |
| 179 | 179 | |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | */ |
| 202 | 202 | public function stopRecording(string $recordingId): Recording |
| 203 | 203 | { |
| 204 | - $response = $this->client()->post(Uri::RECORDINGS_STOP.'/'.$recordingId); |
|
| 204 | + $response = $this->client()->post(Uri::RECORDINGS_STOP . '/' . $recordingId); |
|
| 205 | 205 | switch ($response->getStatusCode()) { |
| 206 | 206 | case 200: |
| 207 | 207 | $recording = RecordingBuilder::build(json_decode($response->getBody()->getContents(), true)); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | case 406: |
| 217 | 217 | throw new OpenViduRecordingStatusException("The recording has `starting` status. Wait until `started` status before stopping the recording."); |
| 218 | 218 | default: |
| 219 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
| 219 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
| 220 | 220 | } |
| 221 | 221 | } |
| 222 | 222 | |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | } |
| 239 | 239 | return $recordings; |
| 240 | 240 | default: |
| 241 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
| 241 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
| 242 | 242 | } |
| 243 | 243 | } |
| 244 | 244 | |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | */ |
| 254 | 254 | public function deleteRecording(string $recordingId): bool |
| 255 | 255 | { |
| 256 | - $response = $this->client()->delete(Uri::RECORDINGS_URI.'/'.$recordingId); |
|
| 256 | + $response = $this->client()->delete(Uri::RECORDINGS_URI . '/' . $recordingId); |
|
| 257 | 257 | |
| 258 | 258 | switch ($response->getStatusCode()) { |
| 259 | 259 | case 200: |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | throw new OpenViduRecordingStatusException("The recording has `started` status. Stop it before deletion."); |
| 266 | 266 | break; |
| 267 | 267 | default: |
| 268 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
| 268 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
| 269 | 269 | } |
| 270 | 270 | } |
| 271 | 271 | |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | case 406: |
| 329 | 329 | throw new OpenViduSessionHasNotConnectedParticipantsException(); |
| 330 | 330 | default: |
| 331 | - throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode()); |
|
| 331 | + throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode()); |
|
| 332 | 332 | } |
| 333 | 333 | } |
| 334 | 334 | } |