/** * Descendant-usable username check. * If the username parameter is null it will return the authenticated user to the referenced parameter, * otherwise it uses the existing user * @param string &$username BitBucket user name */ public function checkUsername(&$username = null) { $username = $this->api->getAuthenticatedUser(); }