minor #35717 time ( void ) : int (cbastienbaron)
This PR was merged into the 5.1-dev branch.
Discussion
----------
time ( void ) : int
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR |
no need to cast - micro improvement
Commits
-------
9f31581fd8
time ( void ) : int
This commit is contained in:
commit
fcb833f26d
@ -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