Skip to content

Commit

Permalink
codestyle test
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Nov 23, 2020
1 parent a5a381e commit e1a2a23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CsobPaymentAuthorizator.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public static function parseTransactions(string $haystack): array
$rules[] = ['note' => $note];
}
$rules = array_merge([], ...$rules);
$rules = array_map(fn(string $item) => trim($item), $rules);
$rules = array_filter($rules, fn($key) => is_string($key), ARRAY_FILTER_USE_KEY);
$rules = array_map(fn (string $item) => trim($item), $rules);
$rules = array_filter($rules, fn ($key) => is_string($key), ARRAY_FILTER_USE_KEY);

$return[] = new Transaction($relatedDate ?? DateTime::from('now'), $currency, $rules);
}
Expand Down

0 comments on commit e1a2a23

Please sign in to comment.