diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2022-10-17 09:36:41 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2022-10-17 09:36:41 +0100 |
| commit | a962cdb53edf017394834fe7a03e96e6dc3793b7 (patch) | |
| tree | 61376d14333d88b49a37283ef598e99bbe180c8f | |
| parent | 0be3fcd171a79f4c1b2d73ea0cb22e6327d923f2 (diff) | |
| download | webtrees-a962cdb53edf017394834fe7a03e96e6dc3793b7.tar.gz webtrees-a962cdb53edf017394834fe7a03e96e6dc3793b7.tar.bz2 webtrees-a962cdb53edf017394834fe7a03e96e6dc3793b7.zip | |
DB column types
| -rw-r--r-- | resources/views/lists/locations-table.phtml | 4 | ||||
| -rw-r--r-- | resources/views/lists/media-table.phtml | 3 | ||||
| -rw-r--r-- | resources/views/lists/notes-table.phtml | 8 | ||||
| -rw-r--r-- | resources/views/lists/repositories-table.phtml | 2 | ||||
| -rw-r--r-- | resources/views/lists/sources-table.phtml | 8 |
5 files changed, 14 insertions, 11 deletions
diff --git a/resources/views/lists/locations-table.phtml b/resources/views/lists/locations-table.phtml index a95bbc22a4..cd7d2ee6c4 100644 --- a/resources/views/lists/locations-table.phtml +++ b/resources/views/lists/locations-table.phtml @@ -31,7 +31,7 @@ $count_individuals = DB::table('individuals') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') - ->map(static fn (string $n) => (int) $n) + ->map(static fn ($n) => (int) $n) ->all(); $count_families = DB::table('families') @@ -44,7 +44,7 @@ $count_families = DB::table('families') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') - ->map(static fn (string $n) => (int) $n) + ->map(static fn ($n) => (int) $n) ->all(); ?> diff --git a/resources/views/lists/media-table.phtml b/resources/views/lists/media-table.phtml index fd183ffdf5..cb0b2d16a6 100644 --- a/resources/views/lists/media-table.phtml +++ b/resources/views/lists/media-table.phtml @@ -31,6 +31,7 @@ $count_individuals = DB::table('individuals') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') + ->map(static fn ($n) => (int) $n) ->all(); $count_families = DB::table('families') @@ -43,6 +44,7 @@ $count_families = DB::table('families') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') + ->map(static fn ($n) => (int) $n) ->all(); $count_sources = DB::table('sources') @@ -55,6 +57,7 @@ $count_sources = DB::table('sources') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') + ->map(static fn ($n) => (int) $n) ->all(); ?> diff --git a/resources/views/lists/notes-table.phtml b/resources/views/lists/notes-table.phtml index 54ba1f74f6..ce3eb7ace2 100644 --- a/resources/views/lists/notes-table.phtml +++ b/resources/views/lists/notes-table.phtml @@ -31,7 +31,7 @@ $count_individuals = DB::table('individuals') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') - ->map(static fn (string $n) => (int) $n) + ->map(static fn ($n) => (int) $n) ->all(); $count_families = DB::table('families') @@ -44,7 +44,7 @@ $count_families = DB::table('families') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') - ->map(static fn (string $n) => (int) $n) + ->map(static fn ($n) => (int) $n) ->all(); $count_media = DB::table('media') @@ -57,7 +57,7 @@ $count_media = DB::table('media') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') - ->map(static fn (string $n) => (int) $n) + ->map(static fn ($n) => (int) $n) ->all(); $count_sources = DB::table('sources') @@ -70,7 +70,7 @@ $count_sources = DB::table('sources') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') - ->map(static fn (string $n) => (int) $n) + ->map(static fn ($n) => (int) $n) ->all(); ?> diff --git a/resources/views/lists/repositories-table.phtml b/resources/views/lists/repositories-table.phtml index 82f1324fd2..3cabf0f333 100644 --- a/resources/views/lists/repositories-table.phtml +++ b/resources/views/lists/repositories-table.phtml @@ -31,7 +31,7 @@ $count_sources = DB::table('sources') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') - ->map(static fn (string $n) => (int) $n) + ->map(static fn ($n) => (int) $n) ->all(); ?> diff --git a/resources/views/lists/sources-table.phtml b/resources/views/lists/sources-table.phtml index 6d2eb6c96b..8132da9d63 100644 --- a/resources/views/lists/sources-table.phtml +++ b/resources/views/lists/sources-table.phtml @@ -32,7 +32,7 @@ $count_individuals = DB::table('individuals') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') - ->map(static fn (string $n) => (int) $n) + ->map(static fn ($n) => (int) $n) ->all(); $count_families = DB::table('families') @@ -45,7 +45,7 @@ $count_families = DB::table('families') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') - ->map(static fn (string $n) => (int) $n) + ->map(static fn ($n) => (int) $n) ->all(); $count_media = DB::table('media') @@ -58,7 +58,7 @@ $count_media = DB::table('media') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') - ->map(static fn (string $n) => (int) $n) + ->map(static fn ($n) => (int) $n) ->all(); $count_notes = DB::table('other') @@ -72,7 +72,7 @@ $count_notes = DB::table('other') ->groupBy(['l_to']) ->select(['l_to', new Expression('COUNT(*) AS total')]) ->pluck('total', 'l_to') - ->map(static fn (string $n) => (int) $n) + ->map(static fn ($n) => (int) $n) ->all(); ?> |
