8000 minor #35717 time ( void ) : int (cbastienbaron) · symfony/symfony@fcb833f · GitHub
[go: up one dir, main page]

Skip to content

Commit fcb833f

Browse files
minor #35717 time ( void ) : int (cbastienbaron)
This PR was merged into the 5.1-dev branch. Discussion ---------- time ( void ) : int 8000 | 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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines 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