Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fcb833f

Browse filesBrowse files
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 ------- 9f31581 time ( void ) : int
2 parents f46ab58 + 9f31581 commit fcb833f
Copy full SHA for fcb833f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed

‎src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ private function calculateTimeDelta(): int
100100
$endpoint = sprintf('%s/auth/time', $this->getEndpoint());
101101
$response = $this->client->request('GET', $endpoint);
102102

103-
$serverTimestamp = (int) (string) $response->getContent();
104-
105-
return $serverTimestamp - (int) time();
103+
return $response->getContent() - time();
106104
}
107105
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.