src/debug/util/Debug.php
public function location($trace) {
        $root = substr($_SERVER['DOCUMENT_ROOT'], 0 , strlen(static::$defaults['docroot']) * -1);
        $file = implode('/', array_diff(explode('/', $trace[0]['file']), explode('/', $root)));
        $ret = array(
            'file' => $file,
            'line' => $trace[0]['line']
        );
        if (isset($trace[1]['function'])) $ret['function'] = $trace[1]['function'];
        if (isset($trace[1]['class'])) $ret['class'] = $trace[1]['class'];
        return $ret;
    }
public function location($trace) {
        $root = substr($_SERVER['DOCUMENT_ROOT'], 0 , strlen(static::$defaults['docroot']) * -1);
        $file = implode('/', array_diff(explode('/', $trace[0]['file']), explode('/', $root)));
        $ret = array(
            'file' => $file,
            'line' => $trace[0]['line']
        );
        if (isset($trace[1]['function'])) $ret['function'] = $trace[1]['function'];
        if (isset($trace[1]['class'])) $ret['class'] = $trace[1]['class'];
        return $ret;
    }
public function location ( $ trace ) { $ root = substr ( $ _SERVER [ 'DOCUMENT_ROOT' ] , 0 , strlen ( static :: $ defaults [ 'docroot' ] ) * - 1 ) ; $ file = implode ( '/' , array_diff ( explode ( '/' , $ trace [ 0 ] [ 'file' ] ) , explode ( '/' , $ root ) ) ) ; $ ret = array ( 'file' => $ file , 'line' => $ trace [ 0 ] [ 'line' ] ) ; if ( isset ( $ trace [ 1 ] [ 'function' ] ) ) $ ret [ 'function' ] = $ trace [ 1 ] [ 'function' ] ; if ( isset ( $ trace [ 1 ] [ 'class' ] ) ) $ ret [ 'class' ] = $ trace [ 1 ] [ 'class' ] ; return $ ret ; }
Create an array that describes the location of the debug call

@param string $trace
@return array
Create an array that describes the location of the debug call