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());
|
$endpoint = sprintf('%s/auth/time', $this->getEndpoint());
|
||||||
$response = $this->client->request('GET', $endpoint);
|
$response = $this->client->request('GET', $endpoint);
|
||||||
|
|
||||||
$serverTimestamp = (int) (string) $response->getContent();
|
return $response->getContent() - time();
|
||||||
|
|
||||||
return $serverTimestamp - (int) time();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user