Passed
Push — master ( 8168cc...e4aea3 )
by Jacobo
03:03
created
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/Exceptions/OpenViduProblemWithBodyParameterException.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/Connection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function unpublish(string $streamId)
125 125
     {
126
-        $this->publishers = array_filter($this->publishers, function (Publisher $publisher) use ($streamId) {
126
+        $this->publishers = array_filter($this->publishers, function(Publisher $publisher) use ($streamId) {
127 127
             return $streamId !== $publisher->getStreamId();
128 128
         });
129 129
     }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     public function unsubscribe(string $streamId)
136 136
     {
137 137
         if (!empty($this->subscribers)) {
138
-            $this->subscribers = array_filter($this->subscribers, function (Subscriber $subscriber) use ($streamId) {
138
+            $this->subscribers = array_filter($this->subscribers, function(Subscriber $subscriber) use ($streamId) {
139 139
                 return $subscriber->getPublisherStreamId() !== $streamId;
140 140
             });
141 141
         }
Please login to merge, or discard this patch.
src/OpenVidu.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.