mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 21:16:47 +00:00
Various code clean up.
This commit is contained in:
@@ -119,7 +119,7 @@ class Search implements SearchInterface
|
||||
|
||||
// Filter transactions that match the given triggers.
|
||||
$filtered = $set->filter(
|
||||
function (Transaction $transaction) use ($words) {
|
||||
function (Transaction $transaction) {
|
||||
|
||||
if ($this->matchModifiers($transaction)) {
|
||||
return $transaction;
|
||||
@@ -237,7 +237,7 @@ class Search implements SearchInterface
|
||||
return false;
|
||||
}
|
||||
foreach ($needle as $what) {
|
||||
if (($pos = strpos($haystack, $what)) !== false) {
|
||||
if (strpos($haystack, $what) !== false) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user