mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Expand tests, do code cleanup.
This commit is contained in:
@@ -69,6 +69,13 @@ class SearchController extends Controller
|
||||
return view('search.index', compact('query', 'fullQuery', 'subTitle'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Request $request
|
||||
* @param SearchInterface $searcher
|
||||
*
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
* @throws \Throwable
|
||||
*/
|
||||
public function search(Request $request, SearchInterface $searcher)
|
||||
{
|
||||
$fullQuery = strval($request->get('query'));
|
||||
@@ -79,7 +86,7 @@ class SearchController extends Controller
|
||||
$cache->addProperty($fullQuery);
|
||||
|
||||
if ($cache->has()) {
|
||||
$transactions = $cache->get();
|
||||
$transactions = $cache->get(); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
if (!$cache->has()) {
|
||||
|
Reference in New Issue
Block a user