@@ -101,7 +101,7 @@ |
||
| 101 | 101 | /** |
| 102 | 102 | * @param RequestInterface $request |
| 103 | 103 | * |
| 104 | - * @return array|Response|null |
|
| 104 | + * @return ResponseInterface |
|
| 105 | 105 | */ |
| 106 | 106 | protected function sendRequest($request) |
| 107 | 107 | { |
@@ -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->log('info', 'Sent request : '.$request); |
|
| 95 | + $this->logger->log('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 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | 'destination' => $phoneDest, |
| 127 | 127 | 'tag1' => $platformId, |
| 128 | 128 | 'tag2' => $siteId, |
| 129 | - 'tag3' => ($callerId === true) ? 'callerid:'.$phoneDid : '', |
|
| 129 | + 'tag3' => ($callerId === true) ? 'callerid:' . $phoneDid : '', |
|
| 130 | 130 | 'did' => $phoneDid, |
| 131 | 131 | 'name' => $name, |
| 132 | 132 | ]; |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | $response = $this->httpClient->createAndSendRequest($args); |
| 255 | 255 | |
| 256 | 256 | if (null !== $this->logger) { |
| 257 | - $this->logger->log('info', 'Response : '.$response); |
|
| 257 | + $this->logger->log('info', 'Response : ' . $response); |
|
| 258 | 258 | } |
| 259 | 259 | |
| 260 | 260 | $data = $this->processResponse($response); |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | ], |
| 361 | 361 | ]; |
| 362 | 362 | |
| 363 | - $boundary = '--------------------------'.microtime(true); |
|
| 363 | + $boundary = '--------------------------' . microtime(true); |
|
| 364 | 364 | $streamFactory = StreamFactoryDiscovery::find(); |
| 365 | 365 | $builder = new MultipartStreamBuilder($streamFactory); |
| 366 | 366 | |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | $builder->addResource('sound', $data, $options); |
| 374 | 374 | |
| 375 | 375 | $body = $builder->build(); |
| 376 | - $headers = ['Content-Type' => 'multipart/form-data; boundary="'.$boundary.'"']; |
|
| 376 | + $headers = ['Content-Type' => 'multipart/form-data; boundary="' . $boundary . '"']; |
|
| 377 | 377 | |
| 378 | 378 | $response = $this->httpClient->createAndSendRequest($args, $headers, $body); |
| 379 | 379 | $data = $this->processResponse($response); |