Code cleanup.

This commit is contained in:
James Cole
2024-03-10 17:15:38 +01:00
parent d57806f2ba
commit ac4e9dcbc5
4 changed files with 29 additions and 34 deletions

View File

@@ -90,8 +90,9 @@ class AccountTransformer extends AbstractTransformer
}
// TODO needs separate method.
/** @var null|array $sort */
$sort = $this->parameters->get('sort');
if (is_countable($sort) && count($sort) > 0) {
if (null !== $sort && count($sort) > 0) {
foreach ($sort as $column => $direction) {
// account_number + iban
if ('iban' === $column) {