From cf38a508cae1d8451c0a4aef488a63098224015b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 11 Nov 2024 21:49:41 -0700 Subject: [PATCH] Lint --- app/Util/ActivityPub/Helpers.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index c54dc8e3d..93cab7754 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -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; }