This commit is contained in:
Daniel Supernault 2024-11-11 21:49:41 -07:00
parent bdc395dc8e
commit cf38a508ca
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -307,7 +307,8 @@ class Helpers
$isMoreThanTenYearsOld = $date->lt($tenYearsAgo);
$tomorrow = $now->copy()->addDay();
$isMoreThanOneDayFuture = $date->gt($tomorrow);
return !($isMoreThanTenYearsOld || $isMoreThanOneDayFuture);
return ! ($isMoreThanTenYearsOld || $isMoreThanOneDayFuture);
} catch (\Exception $e) {
return false;
}
@ -344,7 +345,7 @@ class Helpers
return;
}
if(!self::validateTimestamp($res['published'])) {
if (! self::validateTimestamp($res['published'])) {
return;
}