Completed
Pull Request — master (#22)
by Xavier
01:53
created
Api/Statistics.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             'destination' => $phoneDest,
129 129
             'tag1'        => $platformId,
130 130
             'tag2'        => $siteId,
131
-            'tag3'        => ($callerId === true) ? 'callerid:'.$phoneDid : '',
131
+            'tag3'        => ($callerId === true) ? 'callerid:' . $phoneDid : '',
132 132
             'did'         => $phoneDid,
133 133
             'name'        => $name,
134 134
         ];
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         $response = $this->httpClient->createAndSendRequest($args);
257 257
 
258 258
         // if timeout, throw Exception to trigger Httplug Retry plugin
259
-        if($response->getStatusCode() === 504){
259
+        if ($response->getStatusCode() === 504) {
260 260
             throw new NetworkException('Timeout detected !');
261 261
         }
262 262
 
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
             ],
364 364
         ];
365 365
 
366
-        $boundary      = '--------------------------'.microtime(true);
366
+        $boundary      = '--------------------------' . microtime(true);
367 367
         $streamFactory = StreamFactoryDiscovery::find();
368 368
         $builder       = new MultipartStreamBuilder($streamFactory);
369 369
 
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
         $builder->addResource('sound', $data, $options);
377 377
 
378 378
         $body    = $builder->build();
379
-        $headers = ['Content-Type' => 'multipart/form-data; boundary="'.$boundary.'"'];
379
+        $headers = ['Content-Type' => 'multipart/form-data; boundary="' . $boundary . '"'];
380 380
 
381 381
         $response = $this->httpClient->createAndSendRequest($args, $headers, $body);
382 382
         $data     = $this->processResponse($response);
Please login to merge, or discard this patch.