Passed
Branch master (fda11c)
by Kevin
58s
created
src/CacheEntry.php 1 patch
Spacing   +5 added lines, -5 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
     /**
@@ -290,12 +290,12 @@  discard block
 block discarded – undo
290 290
         if ($this->response !== null) {
291 291
             $this->response = $this->response
292 292
                 ->withBody(
293
-                    \GuzzleHttp\Psr7\Utils::streamFor((string) $this->response->getBody())
293
+                    \GuzzleHttp\Psr7\Utils::streamFor((string)$this->response->getBody())
294 294
                 );
295 295
         }
296 296
         $this->request = $this->request
297 297
             ->withBody(
298
-                \GuzzleHttp\Psr7\Utils::streamFor((string) $this->request->getBody())
298
+                \GuzzleHttp\Psr7\Utils::streamFor((string)$this->request->getBody())
299 299
             );
300 300
     }
301 301
 
Please login to merge, or discard this patch.