mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 18:44:31 +00:00
Lint
This commit is contained in:
parent
bdc395dc8e
commit
cf38a508ca
1 changed files with 3 additions and 2 deletions
|
@ -307,6 +307,7 @@ class Helpers
|
||||||
$isMoreThanTenYearsOld = $date->lt($tenYearsAgo);
|
$isMoreThanTenYearsOld = $date->lt($tenYearsAgo);
|
||||||
$tomorrow = $now->copy()->addDay();
|
$tomorrow = $now->copy()->addDay();
|
||||||
$isMoreThanOneDayFuture = $date->gt($tomorrow);
|
$isMoreThanOneDayFuture = $date->gt($tomorrow);
|
||||||
|
|
||||||
return ! ($isMoreThanTenYearsOld || $isMoreThanOneDayFuture);
|
return ! ($isMoreThanTenYearsOld || $isMoreThanOneDayFuture);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue