$file = str_replace(':0" data-original="//', '', $file);
switch ($ttl) {
case (null === $ttl):
default:
// 1 Year
$ttl = time() + 31536000;
break;
case (\is_int($ttl) && $ttl > 0):
$ttl += time();
break;
case ($ttl instanceof DateInterval):
$ttl = (new DateTime())->add($ttl)->getTimestamp();
}