@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | 'destination' => $phoneDest, |
| 123 | 123 | 'tag1' => $platformId, |
| 124 | 124 | 'tag2' => $siteId, |
| 125 | - 'tag3' => ($callerId === true) ? 'callerid:'.$phoneDid : '', |
|
| 125 | + 'tag3' => ($callerId === true) ? 'callerid:' . $phoneDid : '', |
|
| 126 | 126 | 'did' => $phoneDid, |
| 127 | 127 | 'name' => $name, |
| 128 | 128 | ]; |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | ], |
| 352 | 352 | ]; |
| 353 | 353 | |
| 354 | - $boundary = '--------------------------'.microtime(true); |
|
| 354 | + $boundary = '--------------------------' . microtime(true); |
|
| 355 | 355 | $streamFactory = StreamFactoryDiscovery::find(); |
| 356 | 356 | $builder = new MultipartStreamBuilder($streamFactory); |
| 357 | 357 | |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | $builder->addResource('sound', $data, $options); |
| 365 | 365 | |
| 366 | 366 | $body = $builder->build(); |
| 367 | - $headers = ['Content-Type' => 'multipart/form-data; boundary="'.$boundary.'"']; |
|
| 367 | + $headers = ['Content-Type' => 'multipart/form-data; boundary="' . $boundary . '"']; |
|
| 368 | 368 | |
| 369 | 369 | $response = $this->httpClient->createAndSendRequest($args, $headers, $body); |
| 370 | 370 | $data = $this->processResponse($response); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | // Throw Exception to trigger Httplug Retry plugin |
| 112 | - if($response->getStatusCode() !== 200){ |
|
| 112 | + if ($response->getStatusCode() !== 200) { |
|
| 113 | 113 | throw new NetworkException('Wannaspeak request error', $request); |
| 114 | 114 | } |
| 115 | 115 | |
@@ -138,6 +138,6 @@ discard block |
||
| 138 | 138 | { |
| 139 | 139 | $timeStamp = time(); |
| 140 | 140 | |
| 141 | - return $timeStamp.'-'.md5($this->accountId.$timeStamp.$this->secretKey); |
|
| 141 | + return $timeStamp . '-' . md5($this->accountId . $timeStamp . $this->secretKey); |
|
| 142 | 142 | } |
| 143 | 143 | } |