@@ -23,7 +23,7 @@ |
||
23 | 23 | $configuration = new Configuration(); |
24 | 24 | $config = $this->processConfiguration($configuration, $configs); |
25 | 25 | |
26 | - $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
26 | + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
27 | 27 | $loader->load('services.xml'); |
28 | 28 | |
29 | 29 | $container->setParameter('wanna_speak.api.account_id', $config['api']['credentials']['account_id']); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | 'destination' => $phoneDest, |
89 | 89 | 'tag1' => $platformId, |
90 | 90 | 'tag2' => $siteId, |
91 | - 'tag3' => (true === $callerId) ? 'callerid:'.$phoneDid : '', |
|
91 | + 'tag3' => (true === $callerId) ? 'callerid:' . $phoneDid : '', |
|
92 | 92 | 'did' => $phoneDid, |
93 | 93 | 'name' => $name, |
94 | 94 | ]; |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | ], |
295 | 295 | ]; |
296 | 296 | |
297 | - $boundary = '--------------------------'.microtime(true); |
|
297 | + $boundary = '--------------------------' . microtime(true); |
|
298 | 298 | $streamFactory = Psr17FactoryDiscovery::findStreamFactory(); |
299 | 299 | |
300 | 300 | $builder = new MultipartStreamBuilder($streamFactory); |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | $builder->addResource('sound', $streamFactory->createStreamFromFile($path, 'rb'), $options); |
303 | 303 | $body = $builder->build(); |
304 | 304 | |
305 | - $headers = ['Content-Type' => 'multipart/form-data; boundary="'.$boundary.'"']; |
|
305 | + $headers = ['Content-Type' => 'multipart/form-data; boundary="' . $boundary . '"']; |
|
306 | 306 | |
307 | 307 | $response = $this->httpClient->createAndSendRequest($args, $headers, $body); |
308 | 308 | $data = $this->processResponse($response); |