Try to decouple what's done in smaller functions : 

```php
function setLogin($user, $login)
{
    $this->doSetLogin($user, $login);
    $this->manger->update($user);
}
```

So you can use this sub functions in composed function such as this one