Why are do many methods have two arguments when one would suffice?

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.

For such questions you better join #netxtcloud on IRC. Devs arenโ€™t here very often.

Thank you for the hint. I will ask there.