From 9f31581fd8bfcd14f553af1831f99e9922751de6 Mon Sep 17 00:00:00 2001 From: bastien Date: Fri, 14 Feb 2020 10:48:51 +0100 Subject: [PATCH] time ( void ) : int no need to cast --- .../Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php b/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php index 6b5e24b622..9954144bf6 100644 --- a/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php @@ -100,8 +100,6 @@ final class OvhCloudTransport extends AbstractTransport $endpoint = sprintf('%s/auth/time', $this->getEndpoint()); $response = $this->client->request('GET', $endpoint); - $serverTimestamp = (int) (string) $response->getContent(); - - return $serverTimestamp - (int) time(); + return $response->getContent() - time(); } }