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 9f31581

Browse filesBrowse files
cbastienbaronnicolas-grekas
authored andcommitted
time ( void ) : int
no need to cast
1 parent 0f46aa6 commit 9f31581
Copy full SHA for 9f31581

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.