@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $request = MessageFactoryDiscovery::find()->createRequest(self::DEFAULT_METHOD_POST, $uri, $headers, $body); |
| 93 | 93 | |
| 94 | 94 | if (null !== $this->logger) { |
| 95 | - $this->logger->info('Sent request : '.$request); |
|
| 95 | + $this->logger->info('Sent request : ' . $request); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | return $this->sendRequest($request); |
@@ -136,6 +136,6 @@ discard block |
||
| 136 | 136 | { |
| 137 | 137 | $timeStamp = time(); |
| 138 | 138 | |
| 139 | - return $timeStamp.'-'.md5($this->accountId.$timeStamp.$this->secretKey); |
|
| 139 | + return $timeStamp . '-' . md5($this->accountId . $timeStamp . $this->secretKey); |
|
| 140 | 140 | } |
| 141 | 141 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | 'destination' => $phoneDest, |
| 128 | 128 | 'tag1' => $platformId, |
| 129 | 129 | 'tag2' => $siteId, |
| 130 | - 'tag3' => ($callerId === true) ? 'callerid:'.$phoneDid : '', |
|
| 130 | + 'tag3' => ($callerId === true) ? 'callerid:' . $phoneDid : '', |
|
| 131 | 131 | 'did' => $phoneDid, |
| 132 | 132 | 'name' => $name, |
| 133 | 133 | ]; |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | $response = $this->httpClient->createAndSendRequest($args); |
| 256 | 256 | |
| 257 | 257 | if (null !== $this->logger) { |
| 258 | - $this->logger->info('Response : '.$response); |
|
| 258 | + $this->logger->info('Response : ' . $response); |
|
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | $data = $this->processResponse($response); |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | ], |
| 362 | 362 | ]; |
| 363 | 363 | |
| 364 | - $boundary = '--------------------------'.microtime(true); |
|
| 364 | + $boundary = '--------------------------' . microtime(true); |
|
| 365 | 365 | $streamFactory = StreamFactoryDiscovery::find(); |
| 366 | 366 | $builder = new MultipartStreamBuilder($streamFactory); |
| 367 | 367 | |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | $builder->addResource('sound', $data, $options); |
| 375 | 375 | |
| 376 | 376 | $body = $builder->build(); |
| 377 | - $headers = ['Content-Type' => 'multipart/form-data; boundary="'.$boundary.'"']; |
|
| 377 | + $headers = ['Content-Type' => 'multipart/form-data; boundary="' . $boundary . '"']; |
|
| 378 | 378 | |
| 379 | 379 | $response = $this->httpClient->createAndSendRequest($args, $headers, $body); |
| 380 | 380 | $data = $this->processResponse($response); |