fix formatting

This commit is contained in:
Mark Magyar
2023-05-27 20:19:48 +02:00
parent 4c8a88224a
commit 9a1aeb8c1f
4 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ class HttpTimeProvider implements ITimeProvider
public function __construct(
public string $url = 'https://google.com',
public string $expectedtimeformat = 'D, d M Y H:i:s O+',
array $options = null,
array $options = null,
) {
$this->url = $url;
$this->expectedtimeformat = $expectedtimeformat;
@@ -50,7 +50,7 @@ class HttpTimeProvider implements ITimeProvider
public function getTime()
{
try {
$context = stream_context_create($this->options);
$context = stream_context_create($this->options);
$fd = fopen($this->url, 'rb', false, $context);
$headers = stream_get_meta_data($fd);
fclose($fd);