Passed
Push — master ( c00b75...febabf )
by Jacobo
01:08 queued 11s
created
src/OpenVidu.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     private function client(): Client
74 74
     {
75
-        if($this->client){
75
+        if ($this->client) {
76 76
             return $this->client;
77 77
         }
78 78
         
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             'auth' => [
85 85
                 $this->config['app'], $this->config['secret']
86 86
             ],
87
-            'base_uri' => $this->config['domain'].':'.$this->config['port'],
87
+            'base_uri' => $this->config['domain'] . ':' . $this->config['port'],
88 88
             'debug' => $this->config['debug'],
89 89
             'http_errors' => false,
90 90
             'verify' => false
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                 throw new OpenViduServerRecordingIsDisabledException();
144 144
                 break;
145 145
             default:
146
-                throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode());
146
+                throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode());
147 147
         }
148 148
     }
149 149
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     public function stopRecording(string $recordingId): Recording
190 190
     {        
191
-        $response = $this->client()->post(Uri::RECORDINGS_STOP.'/'.$recordingId);
191
+        $response = $this->client()->post(Uri::RECORDINGS_STOP . '/' . $recordingId);
192 192
         switch ($response->getStatusCode()) {
193 193
             case 200:
194 194
                 $recording = RecordingBuilder::build(json_decode($response->getBody()->getContents(), true));
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                 throw new OpenViduRecordingStatusException("The recording has `starting` status. Wait until `started` status before stopping the recording.");
206 206
                 break;
207 207
             default:
208
-                throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode());
208
+                throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode());
209 209
         }
210 210
     }
211 211
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      */
220 220
     public function getRecording(string $recordingId)
221 221
     {
222
-        $response = $this->client()->get(Uri::RECORDINGS_URI.'/'.$recordingId);
222
+        $response = $this->client()->get(Uri::RECORDINGS_URI . '/' . $recordingId);
223 223
         switch ($response->getStatusCode()) {
224 224
             case 200:
225 225
                 $recording = RecordingBuilder::build(json_decode($response->getBody()->getContents(), true));
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
                 throw new OpenViduRecordingNotFoundException();
229 229
                 break;
230 230
             default:
231
-                throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode());
231
+                throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode());
232 232
         }
233 233
     }
234 234
 
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
                 }
251 251
                 return $recordings;
252 252
             default:
253
-                throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode());
253
+                throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode());
254 254
         }
255 255
     }
256 256
 
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
      */
266 266
     public function deleteRecording(string $recordingId): bool
267 267
     {
268
-        $response = $this->client()->delete(Uri::RECORDINGS_URI.'/'.$recordingId);
268
+        $response = $this->client()->delete(Uri::RECORDINGS_URI . '/' . $recordingId);
269 269
 
270 270
         switch ($response->getStatusCode()) {
271 271
             case 200:
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
                 throw new OpenViduRecordingStatusException("The recording has `started` status. Stop it before deletion.");
278 278
                 break;
279 279
             default:
280
-                throw new OpenViduException("Invalid response status code ".$response->getStatusCode(), $response->getStatusCode());
280
+                throw new OpenViduException("Invalid response status code " . $response->getStatusCode(), $response->getStatusCode());
281 281
         }
282 282
     }
283 283
 
Please login to merge, or discard this patch.