Completed
Push — master ( 408a07...7a75ee )
by Orkhan
01:38
created
src/Exceptions/ResourcePropertyNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
      */
14 14
     public function __construct($property)
15 15
     {
16
-        parent::__construct($property . ' property not found.');
16
+        parent::__construct($property.' property not found.');
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
src/Sipgate.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     {
97 97
         $userId = $user instanceof Resources\User ? $user->id : $user;
98 98
 
99
-        $response = $this->sendRequest($userId . '/devices');
99
+        $response = $this->sendRequest($userId.'/devices');
100 100
 
101 101
         $devices = [];
102 102
         foreach ($response['items'] as $device) {
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function hangupCall(string $callId): bool
162 162
     {
163
-        $this->sendRequest('calls/' . $callId, 'DELETE');
163
+        $this->sendRequest('calls/'.$callId, 'DELETE');
164 164
 
165 165
         return true;
166 166
     }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     public function recordCall(string $callId, bool $value, bool $announcement): bool
180 180
     {
181
-        $this->sendRequest('calls/' . $callId . '/recording', 'PUT', [
181
+        $this->sendRequest('calls/'.$callId.'/recording', 'PUT', [
182 182
             'json' => [
183 183
                 'value' => $value,
184 184
                 'announcement' => $announcement,
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      */
200 200
     public function history(array $options = []): array
201 201
     {
202
-        $response = $this->sendRequest('history?' . $this->historyQueryString($options), 'GET');
202
+        $response = $this->sendRequest('history?'.$this->historyQueryString($options), 'GET');
203 203
 
204 204
         $history = [];
205 205
         foreach ($response['items'] as $item) {
@@ -223,10 +223,10 @@  discard block
 block discarded – undo
223 223
         foreach ($options as $name => $value) {
224 224
             if (is_array($value)) {
225 225
                 foreach ($value as $item) {
226
-                    array_push($queryString, $name . '=' . $item);
226
+                    array_push($queryString, $name.'='.$item);
227 227
                 }
228 228
             } else {
229
-                array_push($queryString, $name . '=' . $value);
229
+                array_push($queryString, $name.'='.$value);
230 230
             }
231 231
         }
232 232
 
Please login to merge, or discard this patch.