@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $data = json_decode($response->getBody()->getContents(), true); |
77 | 77 | |
78 | 78 | if ($data['error']) { |
79 | - throw new \Exception('WannaSpeak API: '.$data['error']['txt']); |
|
79 | + throw new \Exception('WannaSpeak API: ' . $data['error']['txt']); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | return $data; |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | 'destination' => $phoneDest, |
120 | 120 | 'tag1' => $platformId, |
121 | 121 | 'tag2' => $siteId, |
122 | - 'tag3' => ($callerId === true) ? 'callerid:'.$phoneDid : '', |
|
122 | + 'tag3' => ($callerId === true) ? 'callerid:' . $phoneDid : '', |
|
123 | 123 | 'did' => $phoneDid, |
124 | 124 | 'name' => $name, |
125 | 125 | ]; |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | ], |
349 | 349 | ]; |
350 | 350 | |
351 | - $boundary = '--------------------------'.microtime(true); |
|
351 | + $boundary = '--------------------------' . microtime(true); |
|
352 | 352 | $streamFactory = StreamFactoryDiscovery::find(); |
353 | 353 | $builder = new MultipartStreamBuilder($streamFactory); |
354 | 354 | |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | $builder->addResource('sound', $data, $options); |
362 | 362 | |
363 | 363 | $body = $builder->build(); |
364 | - $headers = ['Content-Type' => 'multipart/form-data; boundary="'.$boundary.'"']; |
|
364 | + $headers = ['Content-Type' => 'multipart/form-data; boundary="' . $boundary . '"']; |
|
365 | 365 | |
366 | 366 | $response = $this->httpClient->createAndSendRequest($args, $headers, $body); |
367 | 367 | $data = $this->processResponse($response); |