Sentry/Client.php
function user_context($data, $merge=true)
    {
        if ($merge && $this->context->user !== null) {
            // bail if data is null
            if (!$data) {
                return;
            }
            $this->context->user = array_merge($this->context->user, $data);
        } else {
            $this->context->user = $data;
        }
    }
function user_context($data, $merge=true)
    {
        if ($merge && $this->context->user !== null) {
            // bail if data is null
            if (!$data) {
                return;
            }
            $this->context->user = array_merge($this->context->user, $data);
        } else {
            $this->context->user = $data;
        }
    }
function user_context ( $ data , $ merge = true ) { if ( $ merge && $ this -> context -> user !== null ) { // bail if data is null if ( ! $ data ) { return ; } $ this -> context -> user = array_merge ( $ this -> context -> user , $ data ) ; } else { $ this -> context -> user = $ data ; } }
Sets user context.

@param array $data   Associative array of user data
@param bool $merge   Merge existing context with new context
Sets user context .