Apply code style fixes to PostgreSQL JSON search fix

This commit is contained in:
Maytham Mahdi
2025-08-08 08:13:51 +03:00
parent c08a749e22
commit f11c00a282
+2 -2
View File
@@ -176,7 +176,7 @@ if (! function_exists('Filament\Support\generate_search_column_expression')) {
->explode('.')
->map(fn (string $part): string => (string) str($part)->wrap('"'))
->implode('.')
).collect(str($column)->after('->')->explode('->')) // Handle JSON path parts
) . collect(str($column)->after('->')->explode('->')) // Handle JSON path parts
->map(function ($segment, $index) use ($column): string {
$totalParts = substr_count($column, '->');
@@ -190,7 +190,7 @@ if (! function_exists('Filament\Support\generate_search_column_expression')) {
->map(fn (string $part): string => (string) str($part)->wrap('"'))
->implode('.')
)
).'::text',
) . '::text',
default => $column,
};