Fix codestyle.
This commit is contained in:
parent
a5dc7b1a29
commit
6a1ef89aaa
|
@ -26,7 +26,7 @@ namespace adapters;
|
|||
private $datas;
|
||||
|
||||
/**
|
||||
* API URL
|
||||
* API URL.
|
||||
*/
|
||||
private $api_url = 'https://jsonplaceholder.typicode.com/posts';
|
||||
|
||||
|
|
|
@ -82,9 +82,12 @@ class Webhook extends AbstractDaemon
|
|||
$promises[] = $this->guzzle_client->postAsync($message['url'], ['form_params' => $message['datas']]);
|
||||
}
|
||||
|
||||
try {
|
||||
try
|
||||
{
|
||||
$responses = \GuzzleHttp\Promise\unwrap($promises);
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
catch (\Exception $e)
|
||||
{
|
||||
$this->logger->info('Webhook : ' . json_encode($message) . 'failed with ' . $e->getMessage());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue