Completed
Pull Request — master (#23)
by Xavier
05:30
created
Api/Statistics.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         if ($data['error']) {
79 79
 
80
-            $message = sprintf('WannaSpeak API: %s',is_array($data['error']) ? $data['error']['txt'] : $data['error']);
80
+            $message = sprintf('WannaSpeak API: %s', is_array($data['error']) ? $data['error']['txt'] : $data['error']);
81 81
             $code    = $data['error']['nb'];
82 82
 
83 83
             throw new \Exception($message, $code);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             'destination' => $phoneDest,
124 124
             'tag1'        => $platformId,
125 125
             'tag2'        => $siteId,
126
-            'tag3'        => ($callerId === true) ? 'callerid:'.$phoneDid : '',
126
+            'tag3'        => ($callerId === true) ? 'callerid:' . $phoneDid : '',
127 127
             'did'         => $phoneDid,
128 128
             'name'        => $name,
129 129
         ];
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
             ],
353 353
         ];
354 354
 
355
-        $boundary      = '--------------------------'.microtime(true);
355
+        $boundary      = '--------------------------' . microtime(true);
356 356
         $streamFactory = StreamFactoryDiscovery::find();
357 357
         $builder       = new MultipartStreamBuilder($streamFactory);
358 358
 
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
         $builder->addResource('sound', $data, $options);
366 366
 
367 367
         $body    = $builder->build();
368
-        $headers = ['Content-Type' => 'multipart/form-data; boundary="'.$boundary.'"'];
368
+        $headers = ['Content-Type' => 'multipart/form-data; boundary="' . $boundary . '"'];
369 369
 
370 370
         $response = $this->httpClient->createAndSendRequest($args, $headers, $body);
371 371
         $data     = $this->processResponse($response);
Please login to merge, or discard this patch.