time ( void ) : int
no need to cast
This commit is contained in:
parent
0f46aa602a
commit
9f31581fd8
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user