mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-21 23:32:39 +00:00
Lint
This commit is contained in:
parent
bdc395dc8e
commit
cf38a508ca
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue