@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $rows = $query |
102 | 102 | ->groupBy(['n_givn']) |
103 | 103 | ->pluck(new Expression('COUNT(DISTINCT n_id) AS total'), 'n_givn') |
104 | - ->map(static fn (int|string $count): int => (int) $count); |
|
104 | + ->map(static fn (int | string $count): int => (int) $count); |
|
105 | 105 | |
106 | 106 | |
107 | 107 | $given_names = []; |
@@ -784,7 +784,7 @@ discard block |
||
784 | 784 | * |
785 | 785 | * @return object{id:string,year:int,fact:string,type:string}|null |
786 | 786 | */ |
787 | - private function firstEvent(array $events, bool $ascending): object|null |
|
787 | + private function firstEvent(array $events, bool $ascending): object | null |
|
788 | 788 | { |
789 | 789 | if ($events === []) { |
790 | 790 | $events = [ |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | ->orderBy('d_julianday1', $ascending ? 'ASC' : 'DESC') |
804 | 804 | ->limit(1) |
805 | 805 | ->get() |
806 | - ->map(static fn (object $row): object => (object) [ |
|
806 | + ->map(static fn (object $row) : object => (object) [ |
|
807 | 807 | 'id' => $row->id, |
808 | 808 | 'year' => (int) $row->year, |
809 | 809 | 'fact' => $row->fact, |
@@ -916,14 +916,14 @@ discard block |
||
916 | 916 | return $date->display(); |
917 | 917 | } |
918 | 918 | |
919 | - public function isUserLoggedIn(int|null $user_id): bool |
|
919 | + public function isUserLoggedIn(int | null $user_id): bool |
|
920 | 920 | { |
921 | 921 | return $user_id !== null && DB::table('session') |
922 | 922 | ->where('user_id', '=', $user_id) |
923 | 923 | ->exists(); |
924 | 924 | } |
925 | 925 | |
926 | - public function latestUserId(): int|null |
|
926 | + public function latestUserId(): int | null |
|
927 | 927 | { |
928 | 928 | $user_id = DB::table('user') |
929 | 929 | ->select(['user.user_id']) |
@@ -1135,7 +1135,7 @@ discard block |
||
1135 | 1135 | /** |
1136 | 1136 | * @return object{individual:Individual,days:int}|null |
1137 | 1137 | */ |
1138 | - public function longlifeQuery(string $sex): object|null |
|
1138 | + public function longlifeQuery(string $sex): object | null |
|
1139 | 1139 | { |
1140 | 1140 | return $this->birthAndDeathQuery($sex) |
1141 | 1141 | ->orderBy('days', 'desc') |