Passed
Push — master ( 7604fd...4d6ac9 )
by Jacobo
01:20 queued 11s
created
src/Exceptions/OpenViduSessionCantRecordingException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function __toString()
20 20
     {
21
-        return __CLASS__.":[{$this->code}]:{$this->message}\n";
21
+        return __CLASS__ . ":[{$this->code}]:{$this->message}\n";
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Exceptions/OpenViduSessionHasNotConnectedParticipantsException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function __toString()
20 20
     {
21
-        return __CLASS__.":[{$this->code}]:{$this->message}\n";
21
+        return __CLASS__ . ":[{$this->code}]:{$this->message}\n";
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Exceptions/OpenViduServerRecordingIsDisabledException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function __toString()
20 20
     {
21
-        return __CLASS__.":[{$this->code}]:{$this->message}\n";
21
+        return __CLASS__ . ":[{$this->code}]:{$this->message}\n";
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Exceptions/OpenViduRecordingStatusException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function __toString()
20 20
     {
21
-        return __CLASS__.":[{$this->code}]:{$this->message}\n";
21
+        return __CLASS__ . ":[{$this->code}]:{$this->message}\n";
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Exceptions/OpenViduSessionCantCloseException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function __toString()
20 20
     {
21
-        return __CLASS__.":[{$this->code}]:{$this->message}\n";
21
+        return __CLASS__ . ":[{$this->code}]:{$this->message}\n";
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Exceptions/OpenViduInvalidArgumentException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function __toString()
20 20
     {
21
-        return __CLASS__.":[{$this->code}]:{$this->message}\n";
21
+        return __CLASS__ . ":[{$this->code}]:{$this->message}\n";
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Exceptions/OpenViduSessionCantCreateException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function __toString()
20 20
     {
21
-        return __CLASS__.":[{$this->code}]:{$this->message}\n";
21
+        return __CLASS__ . ":[{$this->code}]:{$this->message}\n";
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Exceptions/OpenViduConnectionNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function __toString()
20 20
     {
21
-        return __CLASS__.":[{$this->code}]:{$this->message}\n";
21
+        return __CLASS__ . ":[{$this->code}]:{$this->message}\n";
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/OpenVidu.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.