Passed
Push — master ( d8d42d...3806bb )
by Arnaud
06:01
created
src/Assets/Cache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     /**
284 284
      * Convert the various expressions of a TTL value into duration in seconds.
285 285
      */
286
-    protected function duration(\DateInterval|int|null $ttl): int
286
+    protected function duration(\DateInterval | int | null $ttl): int
287 287
     {
288 288
         if ($ttl === null) {
289 289
             return $this->duration;
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
             return $ttl;
293 293
         }
294 294
         if ($ttl instanceof \DateInterval) {
295
-            return (int)$ttl->format('%s');
295
+            return (int) $ttl->format('%s');
296 296
         }
297 297
 
298 298
         throw new \InvalidArgumentException('TTL values must be one of null, int, \DateInterval');
Please login to merge, or discard this patch.