time ( void ) : int

no need to cast
This commit is contained in:
bastien 2020-02-14 10:48:51 +01:00 committed by Nicolas Grekas
parent 0f46aa602a
commit 9f31581fd8

View File

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