While looking through the code I found that many methods have two arguments when one would be enough. Example from AliasesService.php
public function findAll($accountId, $currentUserId)
This method finds all aliases for an account and user id. The account id has a unique constraint in the database and therefore should be sufficient to identify an account. Why does this any many methods in other service classes and mappers always take two arguments?
I want to add some functionality and don’t understand if this is a design mistake or whether I am missing something.