mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-20 08:30:06 +00:00
Various code cleanup.
This commit is contained in:
@@ -116,13 +116,13 @@ class SearchController extends Controller
|
||||
|
||||
try {
|
||||
$html = prefixView('search.search', compact('groups', 'hasPages', 'searchTime'))->render();
|
||||
// @codeCoverageIgnoreStart
|
||||
} catch (Throwable $e) {
|
||||
|
||||
} catch (Throwable $e) { // @phpstan-ignore-line
|
||||
Log::error(sprintf('Cannot render search.search: %s', $e->getMessage()));
|
||||
$html = 'Could not render view.';
|
||||
}
|
||||
|
||||
// @codeCoverageIgnoreEnd
|
||||
|
||||
|
||||
return response()->json(['count' => $groups->count(), 'html' => $html]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user