@@ -14,11 +14,11 @@ |
||
14 | 14 | if (empty($this->syncTimestamp)) { |
15 | 15 | $timestamp = new DateTime(); |
16 | 16 | $this->syncTimestamp = |
17 | - $timestamp->format(Constants::SYNC_TIMESTAMP_FORMAT) . |
|
18 | - Constants::SEPARATOR . md5( |
|
17 | + $timestamp->format(Constants::SYNC_TIMESTAMP_FORMAT). |
|
18 | + Constants::SEPARATOR.md5( |
|
19 | 19 | (php_sapi_name() == 'cli' ? |
20 | 20 | 'cli' : $_SERVER['REMOTE_ADDR'] |
21 | - ) . time() |
|
21 | + ).time() |
|
22 | 22 | ); |
23 | 23 | } |
24 | 24 | return $this->syncTimestamp; |
@@ -34,13 +34,13 @@ |
||
34 | 34 | if (is_a($veventOrHash, vevent::class)) { |
35 | 35 | $this->vevent = $veventOrHash; |
36 | 36 | } else { |
37 | - $this->hash = (string) $veventOrHash; |
|
37 | + $this->hash = (string)$veventOrHash; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | if (empty($calendar)) { |
41 | 41 | throw new Exception("Calendar ID required"); |
42 | 42 | } |
43 | - $this->calendar = (string) $calendar; |
|
43 | + $this->calendar = (string)$calendar; |
|
44 | 44 | |
45 | 45 | $this->getHash(); |
46 | 46 | } |