Completed
Pull Request — master (#222)
by Andreas
06:14 queued 01:45
created
lib/Doctrine/Common/Cache/MongoDBCache.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,7 @@
 block discarded – undo
19 19
 
20 20
 namespace Doctrine\Common\Cache;
21 21
 
22
-use MongoBinData;
23 22
 use MongoCollection;
24
-use MongoCursorException;
25 23
 use MongoDate;
26 24
 use MongoDB\Collection;
27 25
 
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/MongoDBNGCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             $this->collection->updateOne(
121 121
                 ['_id' => $id],
122 122
                 ['$set' => [
123
-                    MongoDBCache::EXPIRATION_FIELD => ($lifeTime > 0 ? new UTCDateTime((time() + $lifeTime) * 1000): null),
123
+                    MongoDBCache::EXPIRATION_FIELD => ($lifeTime > 0 ? new UTCDateTime((time() + $lifeTime) * 1000) : null),
124 124
                     MongoDBCache::DATA_FIELD => new Binary(serialize($data), Binary::TYPE_GENERIC),
125 125
                 ]],
126 126
                 ['upsert' => true]
Please login to merge, or discard this patch.