Fix codestyle.

This commit is contained in:
Github Actions Bot 2020-09-02 21:45:01 +00:00
parent a5dc7b1a29
commit 6a1ef89aaa
2 changed files with 6 additions and 3 deletions

View File

@ -26,7 +26,7 @@ namespace adapters;
private $datas;
/**
* API URL
* API URL.
*/
private $api_url = 'https://jsonplaceholder.typicode.com/posts';

View File

@ -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());
}