@@ -123,6 +123,6 @@ |
||
| 123 | 123 | { |
| 124 | 124 | $timeStamp = time(); |
| 125 | 125 | |
| 126 | - return $timeStamp.'-'.md5($this->accountId.$timeStamp.$this->secretKey); |
|
| 126 | + return $timeStamp . '-' . md5($this->accountId . $timeStamp . $this->secretKey); |
|
| 127 | 127 | } |
| 128 | 128 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | if ($data['error']) { |
| 79 | 79 | |
| 80 | - $message = sprintf('WannaSpeak API: %s',is_array($data['error']) ? $data['error']['txt'] : $data['error']); |
|
| 80 | + $message = sprintf('WannaSpeak API: %s', is_array($data['error']) ? $data['error']['txt'] : $data['error']); |
|
| 81 | 81 | $code = $data['error']['nb']; |
| 82 | 82 | |
| 83 | 83 | throw new \Exception($message, $code); |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | 'destination' => $phoneDest, |
| 124 | 124 | 'tag1' => $platformId, |
| 125 | 125 | 'tag2' => $siteId, |
| 126 | - 'tag3' => ($callerId === true) ? 'callerid:'.$phoneDid : '', |
|
| 126 | + 'tag3' => ($callerId === true) ? 'callerid:' . $phoneDid : '', |
|
| 127 | 127 | 'did' => $phoneDid, |
| 128 | 128 | 'name' => $name, |
| 129 | 129 | ]; |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | ], |
| 353 | 353 | ]; |
| 354 | 354 | |
| 355 | - $boundary = '--------------------------'.microtime(true); |
|
| 355 | + $boundary = '--------------------------' . microtime(true); |
|
| 356 | 356 | $streamFactory = StreamFactoryDiscovery::find(); |
| 357 | 357 | $builder = new MultipartStreamBuilder($streamFactory); |
| 358 | 358 | |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | $builder->addResource('sound', $data, $options); |
| 366 | 366 | |
| 367 | 367 | $body = $builder->build(); |
| 368 | - $headers = ['Content-Type' => 'multipart/form-data; boundary="'.$boundary.'"']; |
|
| 368 | + $headers = ['Content-Type' => 'multipart/form-data; boundary="' . $boundary . '"']; |
|
| 369 | 369 | |
| 370 | 370 | $response = $this->httpClient->createAndSendRequest($args, $headers, $body); |
| 371 | 371 | $data = $this->processResponse($response); |