src/SentryTarget.php
public function runExtraCallback($text, $data)
    {
        if (is_callable($this->extraCallback)) {
            $data['extra'] = call_user_func($this->extraCallback, $text, $data['extra'] ? $data['extra'] : []);
        }

        return $data;
    }
public function runExtraCallback($text, $data)
    {
        if (is_callable($this->extraCallback)) {
            $data['extra'] = call_user_func($this->extraCallback, $text, $data['extra'] ? $data['extra'] : []);
        }

        return $data;
    }
public function runExtraCallback ( $ text , $ data ) { if ( is_callable ( $ this -> extraCallback ) ) { $ data [ 'extra' ] = call_user_func ( $ this -> extraCallback , $ text , $ data [ 'extra' ] ? $ data [ 'extra' ] : [ ] ) ; } return $ data ; }
Calls the extra callback if it exists

@param $text
@param $data
@return array
Calls the extra callback if it exists