@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Common\Cache; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | |
6 | 6 | namespace Doctrine\Common\Cache; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $this->collection->updateOne( |
104 | 104 | ['_id' => $id], |
105 | 105 | ['$set' => [ |
106 | - MongoDBCache::EXPIRATION_FIELD => ($lifeTime > 0 ? new UTCDateTime((time() + $lifeTime) * 1000): null), |
|
106 | + MongoDBCache::EXPIRATION_FIELD => ($lifeTime > 0 ? new UTCDateTime((time() + $lifeTime) * 1000) : null), |
|
107 | 107 | MongoDBCache::DATA_FIELD => new Binary(serialize($data), Binary::TYPE_GENERIC), |
108 | 108 | ]], |
109 | 109 | ['upsert' => true] |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | 'recordStats' => 0, |
161 | 161 | 'repl' => 0, |
162 | 162 | ])->toArray()[0]; |
163 | - $uptime = $serverStatus['uptime'] ?? null; |
|
163 | + $uptime = $serverStatus['uptime'] ?? null; |
|
164 | 164 | } catch (Exception $e) { |
165 | 165 | } |
166 | 166 |