| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 4 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 12 | 5 | public static function computeLifetime(DateTimeInterface $expiresAt)  | 
            |
| 13 |     { | 
            ||
| 14 | 5 |         $now = new DateTimeImmutable('now', $expiresAt->getTimezone()); | 
            |
| 15 | |||
| 16 | 5 | $seconds = $expiresAt->getTimestamp() - $now->getTimestamp();  | 
            |
| 17 | |||
| 18 | 5 | return self::isLegacy() ? (int) floor($seconds / 60.0) : $seconds;  | 
            |
| 19 | }  | 
            ||
| 20 | |||
| 33 |