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:
Nicolas Grekas 2020-02-15 11:25:47 +01:00
commit fcb833f26d

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