Passed
Pull Request — master (#156)
by Xavier
01:06
created
src/CacheEntry.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         if ($staleIfErrorTo === null && $values->has('stale-if-error')) {
71 71
             $this->staleIfErrorTo = (new \DateTime(
72
-                '@'.($this->staleAt->getTimestamp() + (int) $values->get('stale-if-error'))
72
+                '@'.($this->staleAt->getTimestamp() + (int)$values->get('stale-if-error'))
73 73
             ));
74 74
         } else {
75 75
             $this->staleIfErrorTo = $staleIfErrorTo;
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         if ($staleWhileRevalidateTo === null && $values->has('stale-while-revalidate')) {
79 79
             $this->staleWhileRevalidateTo = new \DateTime(
80
-                '@'.($this->staleAt->getTimestamp() + (int) $values->get('stale-while-revalidate'))
80
+                '@'.($this->staleAt->getTimestamp() + (int)$values->get('stale-while-revalidate'))
81 81
             );
82 82
         } else {
83 83
             $this->staleWhileRevalidateTo = $staleWhileRevalidateTo;
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         $ttl = max($ttl, $this->staleAt->getTimestamp() - time());
246 246
 
247 247
         // Don't return 0, it's reserved for infinite TTL
248
-        return $ttl !== 0 ? (int) $ttl : -1;
248
+        return $ttl !== 0 ? (int)$ttl : -1;
249 249
     }
250 250
 
251 251
     /**
Please login to merge, or discard this patch.